Fix some compiler warnings emitted by gcc-4.8.0
[oweals/busybox.git] / util-linux / readprofile.c
index 7b7aa7c9fe1d39c12acd0c0534d46bfb88b64645..974fe89c4847807eedeabdef1a94ee5d8019cdf3 100644 (file)
@@ -35,8 +35,7 @@
 //usage:#define readprofile_trivial_usage
 //usage:       "[OPTIONS]"
 //usage:#define readprofile_full_usage "\n\n"
-//usage:       "Options:"
-//usage:     "\n       -m mapfile      (Default: /boot/System.map)"
+//usage:       "       -m mapfile      (Default: /boot/System.map)"
 //usage:     "\n       -p profile      (Default: /proc/profile)"
 //usage:     "\n       -M NUM          Set the profiling multiplier to NUM"
 //usage:     "\n       -i              Print only info about the sampling step"
@@ -164,7 +163,7 @@ int readprofile_main(int argc UNUSED_PARAM, char **argv)
        while (fgets(mapline, S_LEN, map)) {
                if (sscanf(mapline, "%llx %s %s", &fn_add, mode, fn_name) != 3)
                        bb_error_msg_and_die("%s(%i): wrong map line",
-                                            mapFile, maplineno);
+                                       mapFile, maplineno);
 
                if (!strcmp(fn_name, "_stext")) /* only elf works like this */ {
                        add0 = fn_add;
@@ -199,7 +198,7 @@ int readprofile_main(int argc UNUSED_PARAM, char **argv)
 
                if (indx >= len / sizeof(*buf))
                        bb_error_msg_and_die("profile address out of range. "
-                                            "Wrong map file?");
+                                       "Wrong map file?");
 
                while (indx < (next_add-add0)/step) {
                        if (optBins && (buf[indx] || optAll)) {
@@ -221,10 +220,10 @@ int readprofile_main(int argc UNUSED_PARAM, char **argv)
                ) {
                        if (optVerbose)
                                printf("%016llx %-40s %6i %8.4f\n", fn_add,
-                                      fn_name, this, this/(double)fn_len);
+                                       fn_name, this, this/(double)fn_len);
                        else
                                printf("%6i %-40s %8.4f\n",
-                                      this, fn_name, this/(double)fn_len);
+                                       this, fn_name, this/(double)fn_len);
                        if (optSub) {
                                unsigned long long scan;
 
@@ -234,8 +233,8 @@ int readprofile_main(int argc UNUSED_PARAM, char **argv)
 
                                        addr = (scan - 1)*step + add0;
                                        printf("\t%#llx\t%s+%#llx\t%u\n",
-                                              addr, fn_name, addr - fn_add,
-                                              buf[scan]);
+                                               addr, fn_name, addr - fn_add,
+                                               buf[scan]);
                                }
                        }
                }
@@ -252,10 +251,10 @@ int readprofile_main(int argc UNUSED_PARAM, char **argv)
        /* trailer */
        if (optVerbose)
                printf("%016x %-40s %6i %8.4f\n",
-                      0, "total", total, total/(double)(fn_add-add0));
+                       0, "total", total, total/(double)(fn_add-add0));
        else
                printf("%6i %-40s %8.4f\n",
-                      total, "total", total/(double)(fn_add-add0));
+                       total, "total", total/(double)(fn_add-add0));
 
        fclose(map);
        free(buf);