]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-01-26 Daniel Mierswa <impulze@impulze.org>
authorproski <proski@localhost>
Mon, 26 Jan 2009 04:35:57 +0000 (04:35 +0000)
committerproski <proski@localhost>
Mon, 26 Jan 2009 04:35:57 +0000 (04:35 +0000)
* fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.

ChangeLog
fs/fat.c

index bab56b2334764859a490f13c1f51aa1ebee61736..9f37ae9866438906c6ad850fb5941eeb87af90ac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2009-01-26  Daniel Mierswa  <impulze@impulze.org>
 
+       * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
+
        * commands/search.c (search_fs_uuid): Ignore case of the UUID.
 
        * kern/misc.c (grub_strcasecmp): New function.
index 8db176009d857ecc71126454f3eb765a6fc06e82..d62adbc27999d2708a992d4978f3cf5e803b991f 100644 (file)
--- a/fs/fat.c
+++ b/fs/fat.c
@@ -841,7 +841,7 @@ grub_fat_uuid (grub_device_t device, char **uuid)
   if (data)
     {
       *uuid = grub_malloc (sizeof ("xxxx-xxxx"));
-      grub_sprintf (*uuid, "%04x-%04x", (grub_uint16_t) (data->uuid >> 8),
+      grub_sprintf (*uuid, "%04x-%04x", (grub_uint16_t) (data->uuid >> 16),
                    (grub_uint16_t) data->uuid);
     }
   else