]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: Fix 0x%u usage
authorDr. David Alan Gilbert <dave@treblig.org>
Sat, 17 Oct 2020 12:05:34 +0000 (13:05 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 13 Nov 2020 11:31:31 +0000 (12:31 +0100)
There's a couple of places which use varients on "0x%u" in format strings;
that's almost always wrong - you either want 0x%x or just %u.  In libmount's
case it's flags, so I'm assuming the intention really is hex.  In the ja.po
case it's %u in the original msgid.

Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
libmount/src/optstr.c
po/ja.po

index 781bb29806de5e3c369fdd1b70b9886d5760e285..ea933c62b63234c1cb26d2114ca4f9393c10bde1 100644 (file)
@@ -745,7 +745,7 @@ int mnt_optstr_apply_flags(char **optstr, unsigned long flags,
        if (!optstr || !map)
                return -EINVAL;
 
-       DBG(CXT, ul_debug("applying 0x%08lu flags to '%s'", flags, *optstr));
+       DBG(CXT, ul_debug("applying 0x%08lx flags to '%s'", flags, *optstr));
 
        maps[0] = map;
        next = *optstr;
index ec2c550ec66d9b51836150daf21a3015bef35118..4974c0bcc422076562523b53f993d5488f10bbaf 100644 (file)
--- a/po/ja.po
+++ b/po/ja.po
@@ -6820,7 +6820,7 @@ msgstr "間違った vtoc.sanity 値 [0x%08x] の sun ディスクラベルを
 #: libfdisk/src/sun.c:163
 #, c-format
 msgid "Detected sun disklabel with wrong vtoc.nparts [%u]."
-msgstr "間違った vtoc.nparts 値 [0x%u] の sun ディスクラベルを検出しました。"
+msgstr "間違った vtoc.nparts 値 [%u] の sun ディスクラベルを検出しました。"
 
 #: libfdisk/src/sun.c:168
 msgid "Warning: Wrong values need to be fixed up and will be corrected by w(rite)"