Skip to content

Commit

Permalink
scripts: kallsyms: Use %zu to print 'size_t'
Browse files Browse the repository at this point in the history
Commit f3462aa (Kbuild: Handle longer symbols in kallsyms.c) introduced the
following warning on ARM:

scripts/kallsyms.c:121:4: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' [-Wformat]

Use %zu to print 'size_t'.

Signed-off-by: Fabio Estevam <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
Fabio Estevam authored and michal42 committed Nov 8, 2013
1 parent c2e182f commit 6f62259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/kallsyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ static int read_symbol(FILE *in, struct sym_entry *s)
return -1;
}
if (strlen(str) > KSYM_NAME_LEN) {
fprintf(stderr, "Symbol %s too long for kallsyms (%lu vs %d).\n"
fprintf(stderr, "Symbol %s too long for kallsyms (%zu vs %d).\n"
"Please increase KSYM_NAME_LEN both in kernel and kallsyms.c\n",
str, strlen(str), KSYM_NAME_LEN);
return -1;
Expand Down

0 comments on commit 6f62259

Please sign in to comment.