Skip to content

Commit 61ca798

Browse files
rddunlapkonradwilk
authored andcommitted
xen-swiotlb: fix printk and panic args
Fix printk() and panic() args [swap them] to fix build warnings: drivers/xen/swiotlb-xen.c:201: warning: format '%s' expects type 'char *', but argument 2 has type 'int' drivers/xen/swiotlb-xen.c:201: warning: format '%d' expects type 'int', but argument 3 has type 'char *' drivers/xen/swiotlb-xen.c:202: warning: format '%s' expects type 'char *', but argument 2 has type 'int' drivers/xen/swiotlb-xen.c:202: warning: format '%d' expects type 'int', but argument 3 has type 'char *' Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
1 parent ab2a47b commit 61ca798

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/xen/swiotlb-xen.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ void __init xen_swiotlb_init(int verbose)
197197
(xen_io_tlb_nslabs << IO_TLB_SHIFT) >> 20);
198198
goto retry;
199199
}
200-
xen_raw_printk("%s (rc:%d)", rc, m);
201-
panic("%s (rc:%d)", rc, m);
200+
xen_raw_printk("%s (rc:%d)", m, rc);
201+
panic("%s (rc:%d)", m, rc);
202202
}
203203

204204
void *

0 commit comments

Comments
 (0)