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/grant-table.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/grant-table.c')
-rw-r--r-- | drivers/xen/grant-table.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/xen/grant-table.c b/drivers/xen/grant-table.c index 04c1b2d9b775..04cdeb8e3719 100644 --- a/drivers/xen/grant-table.c +++ b/drivers/xen/grant-table.c | |||
@@ -31,6 +31,8 @@ | |||
31 | * IN THE SOFTWARE. | 31 | * IN THE SOFTWARE. |
32 | */ | 32 | */ |
33 | 33 | ||
34 | #define pr_fmt(fmt) "xen:" KBUILD_MODNAME ": " fmt | ||
35 | |||
34 | #include <linux/module.h> | 36 | #include <linux/module.h> |
35 | #include <linux/sched.h> | 37 | #include <linux/sched.h> |
36 | #include <linux/mm.h> | 38 | #include <linux/mm.h> |
@@ -508,8 +510,7 @@ static void gnttab_handle_deferred(unsigned long unused) | |||
508 | entry = NULL; | 510 | entry = NULL; |
509 | } else { | 511 | } else { |
510 | if (!--entry->warn_delay) | 512 | if (!--entry->warn_delay) |
511 | pr_info("g.e. %#x still pending\n", | 513 | pr_info("g.e. %#x still pending\n", entry->ref); |
512 | entry->ref); | ||
513 | if (!first) | 514 | if (!first) |
514 | first = entry; | 515 | first = entry; |
515 | } | 516 | } |
@@ -838,7 +839,7 @@ gnttab_retry_eagain_gop(unsigned int cmd, void *gop, int16_t *status, | |||
838 | } while ((*status == GNTST_eagain) && (delay < MAX_DELAY)); | 839 | } while ((*status == GNTST_eagain) && (delay < MAX_DELAY)); |
839 | 840 | ||
840 | if (delay >= MAX_DELAY) { | 841 | if (delay >= MAX_DELAY) { |
841 | printk(KERN_ERR "%s: %s eagain grant\n", func, current->comm); | 842 | pr_err("%s: %s eagain grant\n", func, current->comm); |
842 | *status = GNTST_bad_page; | 843 | *status = GNTST_bad_page; |
843 | } | 844 | } |
844 | } | 845 | } |
@@ -1048,8 +1049,8 @@ static int gnttab_map(unsigned int start_idx, unsigned int end_idx) | |||
1048 | xatp.gpfn = (xen_hvm_resume_frames >> PAGE_SHIFT) + i; | 1049 | xatp.gpfn = (xen_hvm_resume_frames >> PAGE_SHIFT) + i; |
1049 | rc = HYPERVISOR_memory_op(XENMEM_add_to_physmap, &xatp); | 1050 | rc = HYPERVISOR_memory_op(XENMEM_add_to_physmap, &xatp); |
1050 | if (rc != 0) { | 1051 | if (rc != 0) { |
1051 | printk(KERN_WARNING | 1052 | pr_warn("grant table add_to_physmap failed, err=%d\n", |
1052 | "grant table add_to_physmap failed, err=%d\n", rc); | 1053 | rc); |
1053 | break; | 1054 | break; |
1054 | } | 1055 | } |
1055 | } while (i-- > start_idx); | 1056 | } while (i-- > start_idx); |
@@ -1131,8 +1132,7 @@ static void gnttab_request_version(void) | |||
1131 | grefs_per_grant_frame = PAGE_SIZE / sizeof(struct grant_entry_v1); | 1132 | grefs_per_grant_frame = PAGE_SIZE / sizeof(struct grant_entry_v1); |
1132 | gnttab_interface = &gnttab_v1_ops; | 1133 | gnttab_interface = &gnttab_v1_ops; |
1133 | } | 1134 | } |
1134 | printk(KERN_INFO "Grant tables using version %d layout.\n", | 1135 | pr_info("Grant tables using version %d layout\n", grant_table_version); |
1135 | grant_table_version); | ||
1136 | } | 1136 | } |
1137 | 1137 | ||
1138 | static int gnttab_setup(void) | 1138 | static int gnttab_setup(void) |
@@ -1150,8 +1150,7 @@ static int gnttab_setup(void) | |||
1150 | gnttab_shared.addr = xen_remap(xen_hvm_resume_frames, | 1150 | gnttab_shared.addr = xen_remap(xen_hvm_resume_frames, |
1151 | PAGE_SIZE * max_nr_gframes); | 1151 | PAGE_SIZE * max_nr_gframes); |
1152 | if (gnttab_shared.addr == NULL) { | 1152 | if (gnttab_shared.addr == NULL) { |
1153 | printk(KERN_WARNING | 1153 | pr_warn("Failed to ioremap gnttab share frames!\n"); |
1154 | "Failed to ioremap gnttab share frames!"); | ||
1155 | return -ENOMEM; | 1154 | return -ENOMEM; |
1156 | } | 1155 | } |
1157 | } | 1156 | } |