summaryrefslogtreecommitdiff
path: root/drivers/xen
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@xenotime.net>2011-08-11 13:57:07 -0700
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-08-26 12:10:17 -0400
commit61ca79831ce52c23b3a130f3c2351751e00e0ac9 (patch)
tree63ed6b5d43fc0a9b66659393cb4891198c58f305 /drivers/xen
parentab2a47bd242d6cdcf6b2b64797f271c6f0a6d338 (diff)
downloadlinux-3.10-61ca79831ce52c23b3a130f3c2351751e00e0ac9.tar.gz
linux-3.10-61ca79831ce52c23b3a130f3c2351751e00e0ac9.tar.bz2
linux-3.10-61ca79831ce52c23b3a130f3c2351751e00e0ac9.zip
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 <rdunlap@xenotime.net> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r--drivers/xen/swiotlb-xen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/swiotlb-xen.c b/drivers/xen/swiotlb-xen.c
index ea8c2895032..0408f322572 100644
--- a/drivers/xen/swiotlb-xen.c
+++ b/drivers/xen/swiotlb-xen.c
@@ -197,8 +197,8 @@ error:
(xen_io_tlb_nslabs << IO_TLB_SHIFT) >> 20);
goto retry;
}
- xen_raw_printk("%s (rc:%d)", rc, m);
- panic("%s (rc:%d)", rc, m);
+ xen_raw_printk("%s (rc:%d)", m, rc);
+ panic("%s (rc:%d)", m, rc);
}
void *