drivers/md/md.c: use %pU to print UUIDs

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Joe Perches 2009-12-14 18:01:12 -08:00 committed by Linus Torvalds
parent bc058f65e8
commit 7b75c2f8cf

View file

@ -1936,15 +1936,11 @@ static void print_sb_1(struct mdp_superblock_1 *sb)
uuid = sb->set_uuid; uuid = sb->set_uuid;
printk(KERN_INFO printk(KERN_INFO
"md: SB: (V:%u) (F:0x%08x) Array-ID:<%02x%02x%02x%02x" "md: SB: (V:%u) (F:0x%08x) Array-ID:<%pU>\n"
":%02x%02x:%02x%02x:%02x%02x:%02x%02x%02x%02x%02x%02x>\n"
"md: Name: \"%s\" CT:%llu\n", "md: Name: \"%s\" CT:%llu\n",
le32_to_cpu(sb->major_version), le32_to_cpu(sb->major_version),
le32_to_cpu(sb->feature_map), le32_to_cpu(sb->feature_map),
uuid[0], uuid[1], uuid[2], uuid[3], uuid,
uuid[4], uuid[5], uuid[6], uuid[7],
uuid[8], uuid[9], uuid[10], uuid[11],
uuid[12], uuid[13], uuid[14], uuid[15],
sb->set_name, sb->set_name,
(unsigned long long)le64_to_cpu(sb->ctime) (unsigned long long)le64_to_cpu(sb->ctime)
& MD_SUPERBLOCK_1_TIME_SEC_MASK); & MD_SUPERBLOCK_1_TIME_SEC_MASK);
@ -1953,8 +1949,7 @@ static void print_sb_1(struct mdp_superblock_1 *sb)
printk(KERN_INFO printk(KERN_INFO
"md: L%u SZ%llu RD:%u LO:%u CS:%u DO:%llu DS:%llu SO:%llu" "md: L%u SZ%llu RD:%u LO:%u CS:%u DO:%llu DS:%llu SO:%llu"
" RO:%llu\n" " RO:%llu\n"
"md: Dev:%08x UUID: %02x%02x%02x%02x:%02x%02x:%02x%02x:%02x%02x" "md: Dev:%08x UUID: %pU\n"
":%02x%02x%02x%02x%02x%02x\n"
"md: (F:0x%08x) UT:%llu Events:%llu ResyncOffset:%llu CSUM:0x%08x\n" "md: (F:0x%08x) UT:%llu Events:%llu ResyncOffset:%llu CSUM:0x%08x\n"
"md: (MaxDev:%u) \n", "md: (MaxDev:%u) \n",
le32_to_cpu(sb->level), le32_to_cpu(sb->level),
@ -1967,10 +1962,7 @@ static void print_sb_1(struct mdp_superblock_1 *sb)
(unsigned long long)le64_to_cpu(sb->super_offset), (unsigned long long)le64_to_cpu(sb->super_offset),
(unsigned long long)le64_to_cpu(sb->recovery_offset), (unsigned long long)le64_to_cpu(sb->recovery_offset),
le32_to_cpu(sb->dev_number), le32_to_cpu(sb->dev_number),
uuid[0], uuid[1], uuid[2], uuid[3], uuid,
uuid[4], uuid[5], uuid[6], uuid[7],
uuid[8], uuid[9], uuid[10], uuid[11],
uuid[12], uuid[13], uuid[14], uuid[15],
sb->devflags, sb->devflags,
(unsigned long long)le64_to_cpu(sb->utime) & MD_SUPERBLOCK_1_TIME_SEC_MASK, (unsigned long long)le64_to_cpu(sb->utime) & MD_SUPERBLOCK_1_TIME_SEC_MASK,
(unsigned long long)le64_to_cpu(sb->events), (unsigned long long)le64_to_cpu(sb->events),