]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 4 Jun 2012 21:15:54 +0000 (23:15 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 4 Jun 2012 21:15:54 +0000 (23:15 +0200)
ChangeLog
util/ieee1275/ofpath.c

index 129eb0275a3c96a5b52201126f815072ae5f78cc..1e3e625adea2ffff5c623864d4e0588ea4f9eb73 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
+
 2012-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
 
        Handle IBM OFW path.
index 2968b9f4da561976ee8632ffc9f65fc907a8d4f7..9de9ffc80d5146d2008263b8d9db5eea942465e5 100644 (file)
@@ -404,7 +404,7 @@ of_path_of_scsi(const char *sys_devname __attribute__((unused)), const char *dev
       unsigned long id = 0x8000 | (tgt << 8) | (bus << 5) | lun;
       if (*digit_string == '\0')
        {
-         snprintf(disk, sizeof (disk), "/%s@%04x000000000000", disk_name, id);
+         snprintf(disk, sizeof (disk), "/%s@%04lx000000000000", disk_name, id);
        }
       else
        {
@@ -412,7 +412,7 @@ of_path_of_scsi(const char *sys_devname __attribute__((unused)), const char *dev
 
          sscanf(digit_string, "%d", &part);
          snprintf(disk, sizeof (disk),
-                  "/%s@%04x000000000000:%c", disk_name, id, 'a' + (part - 1));
+                  "/%s@%04lx000000000000:%c", disk_name, id, 'a' + (part - 1));
        }
     }
   else