All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -mmotm/-next] fs: fs_parser: fix printk format warning
@ 2019-02-09  3:18 Randy Dunlap
  2019-03-14  9:07 ` Geert Uytterhoeven
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2019-02-09  3:18 UTC (permalink / raw)
  To: LKML, Andrew Morton; +Cc: Al Viro, David Howells

From: Randy Dunlap <rdunlap@infradead.org>

Fix printk format warning (seen on i386 builds) by using ptrdiff
format specifier (%t):

../fs/fs_parser.c:413:6: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘int’ [-Wformat=]

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: David Howells <dhowells@redhat.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
---
 fs/fs_parser.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- mmotm-2019-0208-1633.orig/fs/fs_parser.c
+++ mmotm-2019-0208-1633/fs/fs_parser.c
@@ -410,7 +410,7 @@ bool fs_validate_description(const struc
 			for (param = desc->specs; param->name; param++) {
 				if (param->opt == e->opt &&
 				    param->type != fs_param_is_enum) {
-					pr_err("VALIDATE %s: e[%lu] enum val for %s\n",
+					pr_err("VALIDATE %s: e[%tu] enum val for %s\n",
 					       name, e - desc->enums, param->name);
 					good = false;
 				}



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-14  9:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-09  3:18 [PATCH -mmotm/-next] fs: fs_parser: fix printk format warning Randy Dunlap
2019-03-14  9:07 ` Geert Uytterhoeven

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.