* [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
* Re: [PATCH -mmotm/-next] fs: fs_parser: fix printk format warning
2019-02-09 3:18 [PATCH -mmotm/-next] fs: fs_parser: fix printk format warning Randy Dunlap
@ 2019-03-14 9:07 ` Geert Uytterhoeven
0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2019-03-14 9:07 UTC (permalink / raw)
To: Randy Dunlap; +Cc: LKML, Andrew Morton, Al Viro, David Howells
On Sat, Feb 9, 2019 at 4:21 AM Randy Dunlap <rdunlap@infradead.org> wrote:
> 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=]
Now seen in upstream on all 32-bit platforms, I guess.
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: David Howells <dhowells@redhat.com>
> Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ 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.