From 6f62259b1a7696a335d5c3f2c89cce1d28912bf2 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Fri, 8 Nov 2013 00:45:01 -0200 Subject: 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 Signed-off-by: Michal Marek --- scripts/kallsyms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index 967522ab4f3..48afa2020b0 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; -- cgit v1.2.3-18-g5258