summaryrefslogtreecommitdiffstats
path: root/fdisk/fdisksunlabel.c
diff options
context:
space:
mode:
authorKarel Zak2010-02-19 16:11:49 +0100
committerKarel Zak2010-02-19 16:11:49 +0100
commitaae63de9efd5e7643edf1180f7055bef22f1ebc3 (patch)
treed800b17e6d51874800d3cfbe037e23799bf32776 /fdisk/fdisksunlabel.c
parentlibblkid: improve Sun VTOC (diff)
downloadkernel-qcow2-util-linux-aae63de9efd5e7643edf1180f7055bef22f1ebc3.tar.gz
kernel-qcow2-util-linux-aae63de9efd5e7643edf1180f7055bef22f1ebc3.tar.xz
kernel-qcow2-util-linux-aae63de9efd5e7643edf1180f7055bef22f1ebc3.zip
fdisk: swap VTOC values for warning messages
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisk/fdisksunlabel.c')
-rw-r--r--fdisk/fdisksunlabel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fdisk/fdisksunlabel.c b/fdisk/fdisksunlabel.c
index 670a15a56..fad9d4f37 100644
--- a/fdisk/fdisksunlabel.c
+++ b/fdisk/fdisksunlabel.c
@@ -146,17 +146,17 @@ int check_sun_label(void)
if (sunlabel->version != SSWAP32(SUN_LABEL_VERSION)) {
fprintf(stderr,_("Detected sun disklabel with wrong version [0x%08x].\n"),
- sunlabel->version);
+ SSWAP32(sunlabel->version));
need_fixing = 1;
}
if (sunlabel->sanity != SSWAP32(SUN_LABEL_SANE)) {
fprintf(stderr,_("Detected sun disklabel with wrong sanity [0x%08x].\n"),
- sunlabel->sanity);
+ SSWAP32(sunlabel->sanity));
need_fixing = 1;
}
if (sunlabel->num_partitions != SSWAP16(SUN_NUM_PARTITIONS)) {
fprintf(stderr,_("Detected sun disklabel with wrong num_partitions [%u].\n"),
- sunlabel->num_partitions);
+ SSWAP16(sunlabel->num_partitions));
need_fixing = 1;
}
if (need_fixing) {