From e3ca1312a20424501144cebe6c2e6e78a5bf6db1 Mon Sep 17 00:00:00 2001 From: Boris Egorov Date: Sat, 20 Jun 2015 01:40:59 +0600 Subject: sys-utils/disk-utils/lib: fix printf format types [cppcheck] Fix 'invalidPrintfArgType' cppcheck warnings Signed-off-by: Boris Egorov --- sys-utils/readprofile.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sys-utils/readprofile.c') diff --git a/sys-utils/readprofile.c b/sys-utils/readprofile.c index eb6b8ec88..3ba866e24 100644 --- a/sys-utils/readprofile.c +++ b/sys-utils/readprofile.c @@ -283,7 +283,7 @@ int main(int argc, char **argv) step = buf[0]; if (optInfo) { - printf(_("Sampling_step: %i\n"), step); + printf(_("Sampling_step: %u\n"), step); exit(EXIT_SUCCESS); } @@ -364,10 +364,10 @@ int main(int argc, char **argv) } else if ((this || optAll) && (fn_len = next_add - fn_add) != 0) { if (optVerbose) - printf("%016llx %-40s %6i %8.4f\n", fn_add, + printf("%016llx %-40s %6u %8.4f\n", fn_add, fn_name, this, this / (double)fn_len); else - printf("%6i %-40s %8.4f\n", + printf("%6u %-40s %8.4f\n", this, fn_name, this / (double)fn_len); if (optSub) { unsigned long long scan; @@ -393,14 +393,14 @@ int main(int argc, char **argv) } /* clock ticks, out of kernel text - probably modules */ - printf("%6i %s\n", buf[len / sizeof(*buf) - 1], "*unknown*"); + printf("%6u %s\n", buf[len / sizeof(*buf) - 1], "*unknown*"); /* trailer */ if (optVerbose) - printf("%016x %-40s %6i %8.4f\n", + printf("%016x %-40s %6u %8.4f\n", 0, "total", total, total / (double)(fn_add - add0)); else - printf("%6i %-40s %8.4f\n", + printf("%6u %-40s %8.4f\n", total, _("total"), total / (double)(fn_add - add0)); popenMap ? pclose(map) : fclose(map); -- cgit v1.2.3-55-g7522