diff options
author | Joe Perches <joe@perches.com> | 2013-06-28 06:21:41 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-06-28 11:19:58 -0400 |
commit | 283c0972d53769ee44750cad4c27e3f5fa26ec1f (patch) | |
tree | 598a36146515f114e21047daa9e19ea8ac8e5fdc /drivers/xen/swiotlb-xen.c | |
parent | 65e053a7038c608f89272d4fb1f899890c579f0a (diff) |
xen: Convert printks to pr_<level>
Convert printks to pr_<level> (excludes printk(KERN_DEBUG...)
to be more consistent throughout the xen subsystem.
Add pr_fmt with KBUILD_MODNAME or "xen:" KBUILD_MODNAME
Coalesce formats and add missing word spaces
Add missing newlines
Align arguments and reflow to 80 columns
Remove DRV_NAME from formats as pr_fmt adds the same content
This does change some of the prefixes of these messages
but it also does make them more consistent.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/swiotlb-xen.c')
-rw-r--r-- | drivers/xen/swiotlb-xen.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/xen/swiotlb-xen.c b/drivers/xen/swiotlb-xen.c index 1d94316f0ea4..aadffcf7db9b 100644 --- a/drivers/xen/swiotlb-xen.c +++ b/drivers/xen/swiotlb-xen.c | |||
@@ -33,6 +33,8 @@ | |||
33 | * | 33 | * |
34 | */ | 34 | */ |
35 | 35 | ||
36 | #define pr_fmt(fmt) "xen:" KBUILD_MODNAME ": " fmt | ||
37 | |||
36 | #include <linux/bootmem.h> | 38 | #include <linux/bootmem.h> |
37 | #include <linux/dma-mapping.h> | 39 | #include <linux/dma-mapping.h> |
38 | #include <linux/export.h> | 40 | #include <linux/export.h> |
@@ -202,8 +204,8 @@ retry: | |||
202 | order--; | 204 | order--; |
203 | } | 205 | } |
204 | if (order != get_order(bytes)) { | 206 | if (order != get_order(bytes)) { |
205 | pr_warn("Warning: only able to allocate %ld MB " | 207 | pr_warn("Warning: only able to allocate %ld MB for software IO TLB\n", |
206 | "for software IO TLB\n", (PAGE_SIZE << order) >> 20); | 208 | (PAGE_SIZE << order) >> 20); |
207 | xen_io_tlb_nslabs = SLABS_PER_PAGE << order; | 209 | xen_io_tlb_nslabs = SLABS_PER_PAGE << order; |
208 | bytes = xen_io_tlb_nslabs << IO_TLB_SHIFT; | 210 | bytes = xen_io_tlb_nslabs << IO_TLB_SHIFT; |
209 | } | 211 | } |
@@ -242,11 +244,11 @@ error: | |||
242 | if (repeat--) { | 244 | if (repeat--) { |
243 | xen_io_tlb_nslabs = max(1024UL, /* Min is 2MB */ | 245 | xen_io_tlb_nslabs = max(1024UL, /* Min is 2MB */ |
244 | (xen_io_tlb_nslabs >> 1)); | 246 | (xen_io_tlb_nslabs >> 1)); |
245 | printk(KERN_INFO "Xen-SWIOTLB: Lowering to %luMB\n", | 247 | pr_info("Lowering to %luMB\n", |
246 | (xen_io_tlb_nslabs << IO_TLB_SHIFT) >> 20); | 248 | (xen_io_tlb_nslabs << IO_TLB_SHIFT) >> 20); |
247 | goto retry; | 249 | goto retry; |
248 | } | 250 | } |
249 | pr_err("%s (rc:%d)", xen_swiotlb_error(m_ret), rc); | 251 | pr_err("%s (rc:%d)\n", xen_swiotlb_error(m_ret), rc); |
250 | if (early) | 252 | if (early) |
251 | panic("%s (rc:%d)", xen_swiotlb_error(m_ret), rc); | 253 | panic("%s (rc:%d)", xen_swiotlb_error(m_ret), rc); |
252 | else | 254 | else |