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/xenbus | |
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/xenbus')
-rw-r--r-- | drivers/xen/xenbus/xenbus_comms.c | 13 | ||||
-rw-r--r-- | drivers/xen/xenbus/xenbus_dev_backend.c | 4 | ||||
-rw-r--r-- | drivers/xen/xenbus/xenbus_dev_frontend.c | 4 | ||||
-rw-r--r-- | drivers/xen/xenbus/xenbus_probe.c | 30 | ||||
-rw-r--r-- | drivers/xen/xenbus/xenbus_probe_backend.c | 8 | ||||
-rw-r--r-- | drivers/xen/xenbus/xenbus_probe_frontend.c | 35 | ||||
-rw-r--r-- | drivers/xen/xenbus/xenbus_xs.c | 22 |
7 files changed, 58 insertions, 58 deletions
diff --git a/drivers/xen/xenbus/xenbus_comms.c b/drivers/xen/xenbus/xenbus_comms.c index c5aa55c5d371..fdb0f339d0a7 100644 --- a/drivers/xen/xenbus/xenbus_comms.c +++ b/drivers/xen/xenbus/xenbus_comms.c | |||
@@ -30,6 +30,8 @@ | |||
30 | * IN THE SOFTWARE. | 30 | * IN THE SOFTWARE. |
31 | */ | 31 | */ |
32 | 32 | ||
33 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
34 | |||
33 | #include <linux/wait.h> | 35 | #include <linux/wait.h> |
34 | #include <linux/interrupt.h> | 36 | #include <linux/interrupt.h> |
35 | #include <linux/sched.h> | 37 | #include <linux/sched.h> |
@@ -205,13 +207,12 @@ int xb_init_comms(void) | |||
205 | struct xenstore_domain_interface *intf = xen_store_interface; | 207 | struct xenstore_domain_interface *intf = xen_store_interface; |
206 | 208 | ||
207 | if (intf->req_prod != intf->req_cons) | 209 | if (intf->req_prod != intf->req_cons) |
208 | printk(KERN_ERR "XENBUS request ring is not quiescent " | 210 | pr_err("request ring is not quiescent (%08x:%08x)!\n", |
209 | "(%08x:%08x)!\n", intf->req_cons, intf->req_prod); | 211 | intf->req_cons, intf->req_prod); |
210 | 212 | ||
211 | if (intf->rsp_prod != intf->rsp_cons) { | 213 | if (intf->rsp_prod != intf->rsp_cons) { |
212 | printk(KERN_WARNING "XENBUS response ring is not quiescent " | 214 | pr_warn("response ring is not quiescent (%08x:%08x): fixing up\n", |
213 | "(%08x:%08x): fixing up\n", | 215 | intf->rsp_cons, intf->rsp_prod); |
214 | intf->rsp_cons, intf->rsp_prod); | ||
215 | /* breaks kdump */ | 216 | /* breaks kdump */ |
216 | if (!reset_devices) | 217 | if (!reset_devices) |
217 | intf->rsp_cons = intf->rsp_prod; | 218 | intf->rsp_cons = intf->rsp_prod; |
@@ -225,7 +226,7 @@ int xb_init_comms(void) | |||
225 | err = bind_evtchn_to_irqhandler(xen_store_evtchn, wake_waiting, | 226 | err = bind_evtchn_to_irqhandler(xen_store_evtchn, wake_waiting, |
226 | 0, "xenbus", &xb_waitq); | 227 | 0, "xenbus", &xb_waitq); |
227 | if (err < 0) { | 228 | if (err < 0) { |
228 | printk(KERN_ERR "XENBUS request irq failed %i\n", err); | 229 | pr_err("request irq failed %i\n", err); |
229 | return err; | 230 | return err; |
230 | } | 231 | } |
231 | 232 | ||
diff --git a/drivers/xen/xenbus/xenbus_dev_backend.c b/drivers/xen/xenbus/xenbus_dev_backend.c index a6f42fc01407..b17707ee07d4 100644 --- a/drivers/xen/xenbus/xenbus_dev_backend.c +++ b/drivers/xen/xenbus/xenbus_dev_backend.c | |||
@@ -1,3 +1,5 @@ | |||
1 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
2 | |||
1 | #include <linux/slab.h> | 3 | #include <linux/slab.h> |
2 | #include <linux/types.h> | 4 | #include <linux/types.h> |
3 | #include <linux/mm.h> | 5 | #include <linux/mm.h> |
@@ -127,7 +129,7 @@ static int __init xenbus_backend_init(void) | |||
127 | 129 | ||
128 | err = misc_register(&xenbus_backend_dev); | 130 | err = misc_register(&xenbus_backend_dev); |
129 | if (err) | 131 | if (err) |
130 | printk(KERN_ERR "Could not register xenbus backend device\n"); | 132 | pr_err("Could not register xenbus backend device\n"); |
131 | return err; | 133 | return err; |
132 | } | 134 | } |
133 | 135 | ||
diff --git a/drivers/xen/xenbus/xenbus_dev_frontend.c b/drivers/xen/xenbus/xenbus_dev_frontend.c index ac727028e658..85534ea63555 100644 --- a/drivers/xen/xenbus/xenbus_dev_frontend.c +++ b/drivers/xen/xenbus/xenbus_dev_frontend.c | |||
@@ -35,6 +35,8 @@ | |||
35 | * Turned xenfs into a loadable module. | 35 | * Turned xenfs into a loadable module. |
36 | */ | 36 | */ |
37 | 37 | ||
38 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
39 | |||
38 | #include <linux/kernel.h> | 40 | #include <linux/kernel.h> |
39 | #include <linux/errno.h> | 41 | #include <linux/errno.h> |
40 | #include <linux/uio.h> | 42 | #include <linux/uio.h> |
@@ -616,7 +618,7 @@ static int __init xenbus_init(void) | |||
616 | 618 | ||
617 | err = misc_register(&xenbus_dev); | 619 | err = misc_register(&xenbus_dev); |
618 | if (err) | 620 | if (err) |
619 | printk(KERN_ERR "Could not register xenbus frontend device\n"); | 621 | pr_err("Could not register xenbus frontend device\n"); |
620 | return err; | 622 | return err; |
621 | } | 623 | } |
622 | 624 | ||
diff --git a/drivers/xen/xenbus/xenbus_probe.c b/drivers/xen/xenbus/xenbus_probe.c index 56cfaaa9d006..cb1afc00c96d 100644 --- a/drivers/xen/xenbus/xenbus_probe.c +++ b/drivers/xen/xenbus/xenbus_probe.c | |||
@@ -30,6 +30,8 @@ | |||
30 | * IN THE SOFTWARE. | 30 | * IN THE SOFTWARE. |
31 | */ | 31 | */ |
32 | 32 | ||
33 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
34 | |||
33 | #define DPRINTK(fmt, args...) \ | 35 | #define DPRINTK(fmt, args...) \ |
34 | pr_debug("xenbus_probe (%s:%d) " fmt ".\n", \ | 36 | pr_debug("xenbus_probe (%s:%d) " fmt ".\n", \ |
35 | __func__, __LINE__, ##args) | 37 | __func__, __LINE__, ##args) |
@@ -280,15 +282,15 @@ void xenbus_dev_shutdown(struct device *_dev) | |||
280 | 282 | ||
281 | get_device(&dev->dev); | 283 | get_device(&dev->dev); |
282 | if (dev->state != XenbusStateConnected) { | 284 | if (dev->state != XenbusStateConnected) { |
283 | printk(KERN_INFO "%s: %s: %s != Connected, skipping\n", __func__, | 285 | pr_info("%s: %s: %s != Connected, skipping\n", |
284 | dev->nodename, xenbus_strstate(dev->state)); | 286 | __func__, dev->nodename, xenbus_strstate(dev->state)); |
285 | goto out; | 287 | goto out; |
286 | } | 288 | } |
287 | xenbus_switch_state(dev, XenbusStateClosing); | 289 | xenbus_switch_state(dev, XenbusStateClosing); |
288 | timeout = wait_for_completion_timeout(&dev->down, timeout); | 290 | timeout = wait_for_completion_timeout(&dev->down, timeout); |
289 | if (!timeout) | 291 | if (!timeout) |
290 | printk(KERN_INFO "%s: %s timeout closing device\n", | 292 | pr_info("%s: %s timeout closing device\n", |
291 | __func__, dev->nodename); | 293 | __func__, dev->nodename); |
292 | out: | 294 | out: |
293 | put_device(&dev->dev); | 295 | put_device(&dev->dev); |
294 | } | 296 | } |
@@ -579,8 +581,7 @@ int xenbus_dev_suspend(struct device *dev) | |||
579 | if (drv->suspend) | 581 | if (drv->suspend) |
580 | err = drv->suspend(xdev); | 582 | err = drv->suspend(xdev); |
581 | if (err) | 583 | if (err) |
582 | printk(KERN_WARNING | 584 | pr_warn("suspend %s failed: %i\n", dev_name(dev), err); |
583 | "xenbus: suspend %s failed: %i\n", dev_name(dev), err); | ||
584 | return 0; | 585 | return 0; |
585 | } | 586 | } |
586 | EXPORT_SYMBOL_GPL(xenbus_dev_suspend); | 587 | EXPORT_SYMBOL_GPL(xenbus_dev_suspend); |
@@ -599,9 +600,8 @@ int xenbus_dev_resume(struct device *dev) | |||
599 | drv = to_xenbus_driver(dev->driver); | 600 | drv = to_xenbus_driver(dev->driver); |
600 | err = talk_to_otherend(xdev); | 601 | err = talk_to_otherend(xdev); |
601 | if (err) { | 602 | if (err) { |
602 | printk(KERN_WARNING | 603 | pr_warn("resume (talk_to_otherend) %s failed: %i\n", |
603 | "xenbus: resume (talk_to_otherend) %s failed: %i\n", | 604 | dev_name(dev), err); |
604 | dev_name(dev), err); | ||
605 | return err; | 605 | return err; |
606 | } | 606 | } |
607 | 607 | ||
@@ -610,18 +610,15 @@ int xenbus_dev_resume(struct device *dev) | |||
610 | if (drv->resume) { | 610 | if (drv->resume) { |
611 | err = drv->resume(xdev); | 611 | err = drv->resume(xdev); |
612 | if (err) { | 612 | if (err) { |
613 | printk(KERN_WARNING | 613 | pr_warn("resume %s failed: %i\n", dev_name(dev), err); |
614 | "xenbus: resume %s failed: %i\n", | ||
615 | dev_name(dev), err); | ||
616 | return err; | 614 | return err; |
617 | } | 615 | } |
618 | } | 616 | } |
619 | 617 | ||
620 | err = watch_otherend(xdev); | 618 | err = watch_otherend(xdev); |
621 | if (err) { | 619 | if (err) { |
622 | printk(KERN_WARNING | 620 | pr_warn("resume (watch_otherend) %s failed: %d.\n", |
623 | "xenbus_probe: resume (watch_otherend) %s failed: " | 621 | dev_name(dev), err); |
624 | "%d.\n", dev_name(dev), err); | ||
625 | return err; | 622 | return err; |
626 | } | 623 | } |
627 | 624 | ||
@@ -776,8 +773,7 @@ static int __init xenbus_init(void) | |||
776 | /* Initialize the interface to xenstore. */ | 773 | /* Initialize the interface to xenstore. */ |
777 | err = xs_init(); | 774 | err = xs_init(); |
778 | if (err) { | 775 | if (err) { |
779 | printk(KERN_WARNING | 776 | pr_warn("Error initializing xenstore comms: %i\n", err); |
780 | "XENBUS: Error initializing xenstore comms: %i\n", err); | ||
781 | goto out_error; | 777 | goto out_error; |
782 | } | 778 | } |
783 | 779 | ||
diff --git a/drivers/xen/xenbus/xenbus_probe_backend.c b/drivers/xen/xenbus/xenbus_probe_backend.c index 257be37d9091..998bbbab816b 100644 --- a/drivers/xen/xenbus/xenbus_probe_backend.c +++ b/drivers/xen/xenbus/xenbus_probe_backend.c | |||
@@ -31,9 +31,11 @@ | |||
31 | * IN THE SOFTWARE. | 31 | * IN THE SOFTWARE. |
32 | */ | 32 | */ |
33 | 33 | ||
34 | #define DPRINTK(fmt, args...) \ | 34 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
35 | pr_debug("xenbus_probe (%s:%d) " fmt ".\n", \ | 35 | |
36 | __func__, __LINE__, ##args) | 36 | #define DPRINTK(fmt, ...) \ |
37 | pr_debug("(%s:%d) " fmt "\n", \ | ||
38 | __func__, __LINE__, ##__VA_ARGS__) | ||
37 | 39 | ||
38 | #include <linux/kernel.h> | 40 | #include <linux/kernel.h> |
39 | #include <linux/err.h> | 41 | #include <linux/err.h> |
diff --git a/drivers/xen/xenbus/xenbus_probe_frontend.c b/drivers/xen/xenbus/xenbus_probe_frontend.c index a7e25073de19..6ed8a9df4472 100644 --- a/drivers/xen/xenbus/xenbus_probe_frontend.c +++ b/drivers/xen/xenbus/xenbus_probe_frontend.c | |||
@@ -1,6 +1,8 @@ | |||
1 | #define DPRINTK(fmt, args...) \ | 1 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
2 | pr_debug("xenbus_probe (%s:%d) " fmt ".\n", \ | 2 | |
3 | __func__, __LINE__, ##args) | 3 | #define DPRINTK(fmt, ...) \ |
4 | pr_debug("(%s:%d) " fmt "\n", \ | ||
5 | __func__, __LINE__, ##__VA_ARGS__) | ||
4 | 6 | ||
5 | #include <linux/kernel.h> | 7 | #include <linux/kernel.h> |
6 | #include <linux/err.h> | 8 | #include <linux/err.h> |
@@ -36,13 +38,13 @@ static int frontend_bus_id(char bus_id[XEN_BUS_ID_SIZE], const char *nodename) | |||
36 | { | 38 | { |
37 | nodename = strchr(nodename, '/'); | 39 | nodename = strchr(nodename, '/'); |
38 | if (!nodename || strlen(nodename + 1) >= XEN_BUS_ID_SIZE) { | 40 | if (!nodename || strlen(nodename + 1) >= XEN_BUS_ID_SIZE) { |
39 | printk(KERN_WARNING "XENBUS: bad frontend %s\n", nodename); | 41 | pr_warn("bad frontend %s\n", nodename); |
40 | return -EINVAL; | 42 | return -EINVAL; |
41 | } | 43 | } |
42 | 44 | ||
43 | strlcpy(bus_id, nodename + 1, XEN_BUS_ID_SIZE); | 45 | strlcpy(bus_id, nodename + 1, XEN_BUS_ID_SIZE); |
44 | if (!strchr(bus_id, '/')) { | 46 | if (!strchr(bus_id, '/')) { |
45 | printk(KERN_WARNING "XENBUS: bus_id %s no slash\n", bus_id); | 47 | pr_warn("bus_id %s no slash\n", bus_id); |
46 | return -EINVAL; | 48 | return -EINVAL; |
47 | } | 49 | } |
48 | *strchr(bus_id, '/') = '-'; | 50 | *strchr(bus_id, '/') = '-'; |
@@ -234,15 +236,13 @@ static int print_device_status(struct device *dev, void *data) | |||
234 | 236 | ||
235 | if (!dev->driver) { | 237 | if (!dev->driver) { |
236 | /* Information only: is this too noisy? */ | 238 | /* Information only: is this too noisy? */ |
237 | printk(KERN_INFO "XENBUS: Device with no driver: %s\n", | 239 | pr_info("Device with no driver: %s\n", xendev->nodename); |
238 | xendev->nodename); | ||
239 | } else if (xendev->state < XenbusStateConnected) { | 240 | } else if (xendev->state < XenbusStateConnected) { |
240 | enum xenbus_state rstate = XenbusStateUnknown; | 241 | enum xenbus_state rstate = XenbusStateUnknown; |
241 | if (xendev->otherend) | 242 | if (xendev->otherend) |
242 | rstate = xenbus_read_driver_state(xendev->otherend); | 243 | rstate = xenbus_read_driver_state(xendev->otherend); |
243 | printk(KERN_WARNING "XENBUS: Timeout connecting " | 244 | pr_warn("Timeout connecting to device: %s (local state %d, remote state %d)\n", |
244 | "to device: %s (local state %d, remote state %d)\n", | 245 | xendev->nodename, xendev->state, rstate); |
245 | xendev->nodename, xendev->state, rstate); | ||
246 | } | 246 | } |
247 | 247 | ||
248 | return 0; | 248 | return 0; |
@@ -256,12 +256,13 @@ static bool wait_loop(unsigned long start, unsigned int max_delay, | |||
256 | { | 256 | { |
257 | if (time_after(jiffies, start + (*seconds_waited+5)*HZ)) { | 257 | if (time_after(jiffies, start + (*seconds_waited+5)*HZ)) { |
258 | if (!*seconds_waited) | 258 | if (!*seconds_waited) |
259 | printk(KERN_WARNING "XENBUS: Waiting for " | 259 | pr_warn("Waiting for devices to initialise: "); |
260 | "devices to initialise: "); | ||
261 | *seconds_waited += 5; | 260 | *seconds_waited += 5; |
262 | printk("%us...", max_delay - *seconds_waited); | 261 | pr_cont("%us...", max_delay - *seconds_waited); |
263 | if (*seconds_waited == max_delay) | 262 | if (*seconds_waited == max_delay) { |
263 | pr_cont("\n"); | ||
264 | return true; | 264 | return true; |
265 | } | ||
265 | } | 266 | } |
266 | 267 | ||
267 | schedule_timeout_interruptible(HZ/10); | 268 | schedule_timeout_interruptible(HZ/10); |
@@ -342,7 +343,7 @@ static void xenbus_reset_wait_for_backend(char *be, int expected) | |||
342 | timeout = wait_event_interruptible_timeout(backend_state_wq, | 343 | timeout = wait_event_interruptible_timeout(backend_state_wq, |
343 | backend_state == expected, 5 * HZ); | 344 | backend_state == expected, 5 * HZ); |
344 | if (timeout <= 0) | 345 | if (timeout <= 0) |
345 | printk(KERN_INFO "XENBUS: backend %s timed out.\n", be); | 346 | pr_info("backend %s timed out\n", be); |
346 | } | 347 | } |
347 | 348 | ||
348 | /* | 349 | /* |
@@ -365,7 +366,7 @@ static void xenbus_reset_frontend(char *fe, char *be, int be_state) | |||
365 | be_watch.callback = xenbus_reset_backend_state_changed; | 366 | be_watch.callback = xenbus_reset_backend_state_changed; |
366 | backend_state = XenbusStateUnknown; | 367 | backend_state = XenbusStateUnknown; |
367 | 368 | ||
368 | printk(KERN_INFO "XENBUS: triggering reconnect on %s\n", be); | 369 | pr_info("triggering reconnect on %s\n", be); |
369 | register_xenbus_watch(&be_watch); | 370 | register_xenbus_watch(&be_watch); |
370 | 371 | ||
371 | /* fall through to forward backend to state XenbusStateInitialising */ | 372 | /* fall through to forward backend to state XenbusStateInitialising */ |
@@ -384,7 +385,7 @@ static void xenbus_reset_frontend(char *fe, char *be, int be_state) | |||
384 | } | 385 | } |
385 | 386 | ||
386 | unregister_xenbus_watch(&be_watch); | 387 | unregister_xenbus_watch(&be_watch); |
387 | printk(KERN_INFO "XENBUS: reconnect done on %s\n", be); | 388 | pr_info("reconnect done on %s\n", be); |
388 | kfree(be_watch.node); | 389 | kfree(be_watch.node); |
389 | } | 390 | } |
390 | 391 | ||
diff --git a/drivers/xen/xenbus/xenbus_xs.c b/drivers/xen/xenbus/xenbus_xs.c index 88e677b0de74..b6d5fff43d16 100644 --- a/drivers/xen/xenbus/xenbus_xs.c +++ b/drivers/xen/xenbus/xenbus_xs.c | |||
@@ -31,6 +31,8 @@ | |||
31 | * IN THE SOFTWARE. | 31 | * IN THE SOFTWARE. |
32 | */ | 32 | */ |
33 | 33 | ||
34 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
35 | |||
34 | #include <linux/unistd.h> | 36 | #include <linux/unistd.h> |
35 | #include <linux/errno.h> | 37 | #include <linux/errno.h> |
36 | #include <linux/types.h> | 38 | #include <linux/types.h> |
@@ -129,9 +131,8 @@ static int get_error(const char *errorstring) | |||
129 | 131 | ||
130 | for (i = 0; strcmp(errorstring, xsd_errors[i].errstring) != 0; i++) { | 132 | for (i = 0; strcmp(errorstring, xsd_errors[i].errstring) != 0; i++) { |
131 | if (i == ARRAY_SIZE(xsd_errors) - 1) { | 133 | if (i == ARRAY_SIZE(xsd_errors) - 1) { |
132 | printk(KERN_WARNING | 134 | pr_warn("xen store gave: unknown error %s\n", |
133 | "XENBUS xen store gave: unknown error %s", | 135 | errorstring); |
134 | errorstring); | ||
135 | return EINVAL; | 136 | return EINVAL; |
136 | } | 137 | } |
137 | } | 138 | } |
@@ -272,10 +273,8 @@ static void *xs_talkv(struct xenbus_transaction t, | |||
272 | } | 273 | } |
273 | 274 | ||
274 | if (msg.type != type) { | 275 | if (msg.type != type) { |
275 | if (printk_ratelimit()) | 276 | pr_warn_ratelimited("unexpected type [%d], expected [%d]\n", |
276 | printk(KERN_WARNING | 277 | msg.type, type); |
277 | "XENBUS unexpected type [%d], expected [%d]\n", | ||
278 | msg.type, type); | ||
279 | kfree(ret); | 278 | kfree(ret); |
280 | return ERR_PTR(-EINVAL); | 279 | return ERR_PTR(-EINVAL); |
281 | } | 280 | } |
@@ -655,7 +654,7 @@ static void xs_reset_watches(void) | |||
655 | 654 | ||
656 | err = xs_error(xs_single(XBT_NIL, XS_RESET_WATCHES, "", NULL)); | 655 | err = xs_error(xs_single(XBT_NIL, XS_RESET_WATCHES, "", NULL)); |
657 | if (err && err != -EEXIST) | 656 | if (err && err != -EEXIST) |
658 | printk(KERN_WARNING "xs_reset_watches failed: %d\n", err); | 657 | pr_warn("xs_reset_watches failed: %d\n", err); |
659 | } | 658 | } |
660 | 659 | ||
661 | /* Register callback to watch this node. */ | 660 | /* Register callback to watch this node. */ |
@@ -705,9 +704,7 @@ void unregister_xenbus_watch(struct xenbus_watch *watch) | |||
705 | 704 | ||
706 | err = xs_unwatch(watch->node, token); | 705 | err = xs_unwatch(watch->node, token); |
707 | if (err) | 706 | if (err) |
708 | printk(KERN_WARNING | 707 | pr_warn("Failed to release watch %s: %i\n", watch->node, err); |
709 | "XENBUS Failed to release watch %s: %i\n", | ||
710 | watch->node, err); | ||
711 | 708 | ||
712 | up_read(&xs_state.watch_mutex); | 709 | up_read(&xs_state.watch_mutex); |
713 | 710 | ||
@@ -901,8 +898,7 @@ static int xenbus_thread(void *unused) | |||
901 | for (;;) { | 898 | for (;;) { |
902 | err = process_msg(); | 899 | err = process_msg(); |
903 | if (err) | 900 | if (err) |
904 | printk(KERN_WARNING "XENBUS error %d while reading " | 901 | pr_warn("error %d while reading message\n", err); |
905 | "message\n", err); | ||
906 | if (kthread_should_stop()) | 902 | if (kthread_should_stop()) |
907 | break; | 903 | break; |
908 | } | 904 | } |