summaryrefslogtreecommitdiff
path: root/util-linux/volume_id/util.c
diff options
context:
space:
mode:
authorSven-Göran Bergh2013-01-14 00:37:00 +0100
committerDenys Vlasenko2013-01-14 00:37:00 +0100
commit07b419dbcb34958d0f6050231783bd78f7d0344f (patch)
treef3488ec84172a9e69b3ffb2e9e4cecf0b8854e6f /util-linux/volume_id/util.c
parenta58f7b7d2f73b84638a8e8c14a142d4a03678eeb (diff)
downloadbusybox-07b419dbcb34958d0f6050231783bd78f7d0344f.zip
busybox-07b419dbcb34958d0f6050231783bd78f7d0344f.tar.gz
volume_id: display hfs[+] 128-bit UUID properly
Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/volume_id/util.c')
-rw-r--r--util-linux/volume_id/util.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/util-linux/volume_id/util.c b/util-linux/volume_id/util.c
index 69e43dd..11ee0d5 100644
--- a/util-linux/volume_id/util.c
+++ b/util-linux/volume_id/util.c
@@ -142,7 +142,6 @@ void volume_id_set_uuid(struct volume_id *id, const uint8_t *buf, enum uuid_form
count = 4;
break;
case UUID_NTFS:
- case UUID_HFS:
count = 8;
break;
case UUID_DCE:
@@ -173,11 +172,6 @@ set:
buf[7], buf[6], buf[5], buf[4],
buf[3], buf[2], buf[1], buf[0]);
break;
- case UUID_HFS:
- sprintf(id->uuid, "%02X%02X%02X%02X%02X%02X%02X%02X",
- buf[0], buf[1], buf[2], buf[3],
- buf[4], buf[5], buf[6], buf[7]);
- break;
case UUID_DCE:
sprintf(id->uuid,
"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",