From: Ruediger Meier Date: Fri, 1 Dec 2017 19:57:24 +0000 (+0100) Subject: misc: fix printf i386 compiler warnings X-Git-Tag: v2.32-rc1~103^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=845dac5f8e61137f4c311aa2767c4bc5b7b6aae8;p=thirdparty%2Futil-linux.git misc: fix printf i386 compiler warnings sys-utils/lsns.c:683:2: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘ino_t’ [-Werror=format=] Signed-off-by: Ruediger Meier --- diff --git a/sys-utils/lsns.c b/sys-utils/lsns.c index eea04c73cc..a9437aacbc 100644 --- a/sys-utils/lsns.c +++ b/sys-utils/lsns.c @@ -680,7 +680,7 @@ static int nsfs_xasputs(char **str, char *expected_root; struct libmnt_fs *fs = NULL; - xasprintf(&expected_root, "%s:[%lu]", ns_names[ns->type], ns->id); + xasprintf(&expected_root, "%s:[%ju]", ns_names[ns->type], (uintmax_t)ns->id); *str = NULL; while (mnt_table_find_next_fs(tab, itr, is_nsfs_root,