Skip to content

Commit 5ff7842

Browse files
committed
parisc: Fix module path output in qemu tables
Signed-off-by: Helge Deller <deller@gmx.de>
1 parent 97cb915 commit 5ff7842

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/parisc/kernel/drivers.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,14 +1040,14 @@ static __init int qemu_print_iodc_data(struct device *lin_dev, void *data)
10401040
"mod_path_hpa_%08lx = {\n", hpa);
10411041
pr_cont("\t.path = { ");
10421042
pr_cont(".flags = 0x%x, ", mod_path.path.flags);
1043-
pr_cont(".bc = { 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x }, ",
1043+
pr_cont(".bc = { 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x }, ",
10441044
(unsigned char)mod_path.path.bc[0],
10451045
(unsigned char)mod_path.path.bc[1],
10461046
(unsigned char)mod_path.path.bc[2],
10471047
(unsigned char)mod_path.path.bc[3],
10481048
(unsigned char)mod_path.path.bc[4],
10491049
(unsigned char)mod_path.path.bc[5]);
1050-
pr_cont(".mod = 0x%x }\n", mod_path.path.mod);
1050+
pr_cont(".mod = 0x%02x }\n", (unsigned char)mod_path.path.mod);
10511051
pr_cont("};\n");
10521052

10531053
pr_info("static struct pdc_iodc iodc_data_hpa_%08lx = {\n", hpa);

0 commit comments

Comments
 (0)