From: Karel Zak Date: Wed, 28 Apr 2010 07:10:27 +0000 (+0200) Subject: libblkid: fix LUKS version X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c90bdfede677808186b0921330d05a02b45c4963;p=util-linux libblkid: fix LUKS version Reported-by: Milan Broz Signed-off-by: Karel Zak --- diff --git a/shlibs/blkid/src/superblocks/luks.c b/shlibs/blkid/src/superblocks/luks.c index 0af85b53..f716e31c 100644 --- a/shlibs/blkid/src/superblocks/luks.c +++ b/shlibs/blkid/src/superblocks/luks.c @@ -49,7 +49,7 @@ static int probe_luks(blkid_probe pr, const struct blkid_idmag *mag) blkid_probe_strncpy_uuid(pr, (unsigned char *) header->uuid, sizeof(header->uuid)); - blkid_probe_sprintf_version(pr, "%u", le16_to_cpu(header->version)); + blkid_probe_sprintf_version(pr, "%u", be16_to_cpu(header->version)); return 0; }