summaryrefslogtreecommitdiff
path: root/extras/volume_id/lib
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-04-26 22:46:27 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-04-26 22:46:27 +0200
commit01ad1ef5f367f1e3e777d03f08b78a1fc37a8f05 (patch)
tree5875e8cea1997ceadc591d39ee1cd690e619d849 /extras/volume_id/lib
parent702e02313cffa3b7f91f6e0aa163bc6a7df0c2bd (diff)
volume_id: ext - fix endianess in version number
Diffstat (limited to 'extras/volume_id/lib')
-rw-r--r--extras/volume_id/lib/ext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/volume_id/lib/ext.c b/extras/volume_id/lib/ext.c
index 8fc7a747dc..8b3af3aab0 100644
--- a/extras/volume_id/lib/ext.c
+++ b/extras/volume_id/lib/ext.c
@@ -94,8 +94,8 @@ int volume_id_probe_ext(struct volume_id *id, uint64_t off, uint64_t size)
volume_id_set_label_raw(id, es->s_volume_name, 16);
volume_id_set_label_string(id, es->s_volume_name, 16);
volume_id_set_uuid(id, es->s_uuid, UUID_DCE);
- snprintf(id->type_version, sizeof(id->type_version)-1,
- "%u.%u", es->s_rev_level, es->s_minor_rev_level);
+ snprintf(id->type_version, sizeof(id->type_version)-1, "%u.%u",
+ le32_to_cpu(es->s_rev_level), le16_to_cpu(es->s_minor_rev_level));
/* check for external journal device */
if ((le32_to_cpu(es->s_feature_incompat) & EXT3_FEATURE_INCOMPAT_JOURNAL_DEV) != 0) {