aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kallsyms.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-11-07 21:45:01 -0500
committerMichal Marek <mmarek@suse.cz>2013-11-08 04:05:20 -0500
commit6f62259b1a7696a335d5c3f2c89cce1d28912bf2 (patch)
tree3f392962c67d0f41721041ce9c750b79520acbab /scripts/kallsyms.c
parentc2e182fab04c1fb50e7dac05d0fd78d331225ad0 (diff)
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)
112 return -1; 112 return -1;
113 } 113 }
114 if (strlen(str) > KSYM_NAME_LEN) { 114 if (strlen(str) > KSYM_NAME_LEN) {
115 fprintf(stderr, "Symbol %s too long for kallsyms (%lu vs %d).\n" 115 fprintf(stderr, "Symbol %s too long for kallsyms (%zu vs %d).\n"
116 "Please increase KSYM_NAME_LEN both in kernel and kallsyms.c\n", 116 "Please increase KSYM_NAME_LEN both in kernel and kallsyms.c\n",
117 str, strlen(str), KSYM_NAME_LEN); 117 str, strlen(str), KSYM_NAME_LEN);
118 return -1; 118 return -1;