Revision: 1959
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=1959
Author:   proski
Date:     2009-01-26 04:35:57 +0000 (Mon, 26 Jan 2009)

Log Message:
-----------
2009-01-26  Daniel Mierswa  <[email protected]>

        * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/fs/fat.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog       2009-01-26 04:26:47 UTC (rev 1958)
+++ trunk/grub2/ChangeLog       2009-01-26 04:35:57 UTC (rev 1959)
@@ -1,5 +1,7 @@
 2009-01-26  Daniel Mierswa  <[email protected]>
 
+       * 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.

Modified: trunk/grub2/fs/fat.c
===================================================================
--- trunk/grub2/fs/fat.c        2009-01-26 04:26:47 UTC (rev 1958)
+++ trunk/grub2/fs/fat.c        2009-01-26 04:35:57 UTC (rev 1959)
@@ -841,7 +841,7 @@
   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




Reply via email to