From 007ae52daccea4a0065f886b3c09a1d1caf4885a Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Mon, 4 Jun 2012 23:15:54 +0200 Subject: [PATCH] * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier. --- ChangeLog | 4 ++++ util/ieee1275/ofpath.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 129eb0275..1e3e625ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-06-04 Vladimir Serbinenko + + * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier. + 2012-06-04 Vladimir Serbinenko Handle IBM OFW path. diff --git a/util/ieee1275/ofpath.c b/util/ieee1275/ofpath.c index 2968b9f4d..9de9ffc80 100644 --- a/util/ieee1275/ofpath.c +++ b/util/ieee1275/ofpath.c @@ -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