mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
fs: fs_parser: fix printk format warning
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=] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Randy Dunlap <[email protected]> Acked-by: Geert Uytterhoeven <[email protected]> Cc: David Howells <[email protected]> Cc: Alexander Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
1 parent
4462996ea3
commit
2620327852
1 file changed
+1
-1
+1
-1
@@ -410,7 +410,7 @@ bool fs_validate_description(const struct fs_parameter_description *desc)
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user