summaryrefslogtreecommitdiff
path: root/scripts/kallsyms.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-11-08 06:45:01 +0400
committerMichal Marek <mmarek@suse.cz>2013-11-08 13:05:20 +0400
commit6f62259b1a7696a335d5c3f2c89cce1d28912bf2 (patch)
tree3f392962c67d0f41721041ce9c750b79520acbab /scripts/kallsyms.c
parentc2e182fab04c1fb50e7dac05d0fd78d331225ad0 (diff)
downloadlinux-6f62259b1a7696a335d5c3f2c89cce1d28912bf2.tar.xz
scripts: kallsyms: Use %zu to print 'size_t'
Commit f3462aa95 (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 <fabio.estevam@freescale.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/kallsyms.c')
-rw-r--r--scripts/kallsyms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index 967522ab4f39..48afa2020b00 100644
--- a/scripts/kallsyms.c
+++ b/scripts/kallsyms.c
@@ -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;