diff options
author | Adhemerval Zanella Netto <adhemerval.zanella@linaro.org> | 2022-09-01 10:02:30 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-09-22 08:48:04 -0300 |
commit | de477abcaaabb1f9815cb63876637a47a95e7ac1 (patch) | |
tree | 22bd98fe9a4aaa03257147db719e844fcdb42f7a /elf/sprof.c | |
parent | 340097d0b50eff9d3058e06c6989ae398c653d4a (diff) | |
download | glibc-de477abcaaabb1f9815cb63876637a47a95e7ac1.tar glibc-de477abcaaabb1f9815cb63876637a47a95e7ac1.tar.gz glibc-de477abcaaabb1f9815cb63876637a47a95e7ac1.tar.bz2 glibc-de477abcaaabb1f9815cb63876637a47a95e7ac1.zip |
Use '%z' instead of '%Z' on printf functions
The Z modifier is a nonstandard synonymn for z (that predates z
itself) and compiler might issue an warning for in invalid
conversion specifier.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'elf/sprof.c')
-rw-r--r-- | elf/sprof.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/elf/sprof.c b/elf/sprof.c index 405fbcbf38..da7d817b09 100644 --- a/elf/sprof.c +++ b/elf/sprof.c @@ -476,7 +476,7 @@ load_shobj (const char *name) result->kcountsize = textsize / HISTFRACTION; result->hashfraction = HASHFRACTION; if (do_test) - printf ("hashfraction = %d\ndivider = %Zu\n", + printf ("hashfraction = %d\ndivider = %zu\n", result->hashfraction, result->hashfraction * sizeof (struct here_fromstruct)); result->tossize = textsize / HASHFRACTION; @@ -495,7 +495,7 @@ load_shobj (const char *name) * sizeof (struct here_cg_arc_record))); if (do_test) - printf ("expected size: %Zd\n", result->expected_size); + printf ("expected size: %zd\n", result->expected_size); #define SCALE_1_TO_1 0x10000L @@ -1357,15 +1357,15 @@ generate_call_graph (struct profdata *profdata) ? sortsym[runp->idx]->name : "<UNKNOWN>")); if (runp->idx != (size_t) -1l) - printf (" [%Zd]", runp->idx); + printf (" [%zd]", runp->idx); putchar_unlocked ('\n'); runp = runp->next; } /* Info about the function itself. */ - n = printf ("[%Zu]", cnt); - printf ("%*s%5.1f%8.2f%8.2f%9" PRIdMAX " %s [%Zd]\n", + n = printf ("[%zu]", cnt); + printf ("%*s%5.1f%8.2f%8.2f%9" PRIdMAX " %s [%zd]\n", (int) (7 - n), " ", total_ticks ? (100.0 * sortsym[cnt]->ticks) / total_ticks : 0, sortsym[cnt]->ticks * tick_unit, @@ -1384,7 +1384,7 @@ generate_call_graph (struct profdata *profdata) runp->count); if (runp->idx != (size_t) -1l) - printf ("%-9" PRIdMAX " %s [%Zd]\n", + printf ("%-9" PRIdMAX " %s [%zd]\n", sortsym[runp->idx]->calls, sortsym[runp->idx]->name, runp->idx); |