diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-11-08 00:45:01 -0200 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2013-11-08 10:05:20 +0100 |
commit | 6f62259b1a7696a335d5c3f2c89cce1d28912bf2 (patch) | |
tree | 3f392962c67d0f41721041ce9c750b79520acbab /scripts | |
parent | c2e182fab04c1fb50e7dac05d0fd78d331225ad0 (diff) | |
download | op-kernel-dev-6f62259b1a7696a335d5c3f2c89cce1d28912bf2.zip op-kernel-dev-6f62259b1a7696a335d5c3f2c89cce1d28912bf2.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index 967522a..48afa20 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; |