From: Randy Dunlap <[email protected]>

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 <[email protected]>
Cc: David Howells <[email protected]>
Cc: Alexander Viro <[email protected]>
---
 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;
                                }


Reply via email to