summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-11-08 03:45:01 +0100
committerMichal Marek <mmarek@suse.cz>2013-11-08 10:05:20 +0100
commit6f62259b1a7696a335d5c3f2c89cce1d28912bf2 (patch)
tree3f392962c67d0f41721041ce9c750b79520acbab /scripts
parentscripts/bloat-o-meter: use .startswith rather than fragile slicing (diff)
downloadlinux-6f62259b1a7696a335d5c3f2c89cce1d28912bf2.tar.xz
linux-6f62259b1a7696a335d5c3f2c89cce1d28912bf2.zip
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')
-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;