[89874] Fix the issue of cutting the number of log files

Change-Id: I310258f7be3c1fdbf0687b37cd2e711135071560
diff --git a/mbtk/mbtk_logd/common.c b/mbtk/mbtk_logd/common.c
index 56df064..50177f1 100755
--- a/mbtk/mbtk_logd/common.c
+++ b/mbtk/mbtk_logd/common.c
@@ -209,7 +209,7 @@
     snprintf(new_name, sizeof(new_name), "%s.%d", base_file, rotate_file_count_max - 1);
     remove(new_name);
 
-    for (int i = rotate_file_count_max - 2; i >= 0; i--) 
+    for (int i = rotate_file_count_max - 1; i >= 0; i--) 
     {
         if (i == 0) 
         {