Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4179bc30 authored by Kyungchan Koh's avatar Kyungchan Koh Committed by Shaohua Li
Browse files

md: uuid debug statement now in processor byte order.



Previously, the uuid debug statements were printed in little-endian
format, which wasn't consistent in machines that might not be in
little-endian byte order. With this change, the output will be
consistent for all machines with different byte-ordering.

Signed-off-by: default avatarKyungchan Koh <kkc6196@fb.com>
Signed-off-by: default avatarShaohua Li <shli@fb.com>
parent 2dffdc07
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -485,10 +485,10 @@ void bitmap_print_sb(struct bitmap *bitmap)
	pr_debug("         magic: %08x\n", le32_to_cpu(sb->magic));
	pr_debug("         magic: %08x\n", le32_to_cpu(sb->magic));
	pr_debug("       version: %d\n", le32_to_cpu(sb->version));
	pr_debug("       version: %d\n", le32_to_cpu(sb->version));
	pr_debug("          uuid: %08x.%08x.%08x.%08x\n",
	pr_debug("          uuid: %08x.%08x.%08x.%08x\n",
		 *(__u32 *)(sb->uuid+0),
		 le32_to_cpu(*(__u32 *)(sb->uuid+0)),
		 *(__u32 *)(sb->uuid+4),
		 le32_to_cpu(*(__u32 *)(sb->uuid+4)),
		 *(__u32 *)(sb->uuid+8),
		 le32_to_cpu(*(__u32 *)(sb->uuid+8)),
		 *(__u32 *)(sb->uuid+12));
		 le32_to_cpu(*(__u32 *)(sb->uuid+12)));
	pr_debug("        events: %llu\n",
	pr_debug("        events: %llu\n",
		 (unsigned long long) le64_to_cpu(sb->events));
		 (unsigned long long) le64_to_cpu(sb->events));
	pr_debug("events cleared: %llu\n",
	pr_debug("events cleared: %llu\n",