]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/xen/xenbus/xenbus_comms.c
Merge tag 'fbdev-for-3.11' of git://git.kernel.org/pub/scm/linux/kernel/git/plagnioj...
[karo-tx-linux.git] / drivers / xen / xenbus / xenbus_comms.c
index c5aa55c5d371e495e1a5c4a39051225d5fc27dd7..fdb0f339d0a75b06bfe37ec46bc08d90e14a9759 100644 (file)
@@ -30,6 +30,8 @@
  * IN THE SOFTWARE.
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/wait.h>
 #include <linux/interrupt.h>
 #include <linux/sched.h>
@@ -205,13 +207,12 @@ int xb_init_comms(void)
        struct xenstore_domain_interface *intf = xen_store_interface;
 
        if (intf->req_prod != intf->req_cons)
-               printk(KERN_ERR "XENBUS request ring is not quiescent "
-                      "(%08x:%08x)!\n", intf->req_cons, intf->req_prod);
+               pr_err("request ring is not quiescent (%08x:%08x)!\n",
+                      intf->req_cons, intf->req_prod);
 
        if (intf->rsp_prod != intf->rsp_cons) {
-               printk(KERN_WARNING "XENBUS response ring is not quiescent "
-                      "(%08x:%08x): fixing up\n",
-                      intf->rsp_cons, intf->rsp_prod);
+               pr_warn("response ring is not quiescent (%08x:%08x): fixing up\n",
+                       intf->rsp_cons, intf->rsp_prod);
                /* breaks kdump */
                if (!reset_devices)
                        intf->rsp_cons = intf->rsp_prod;
@@ -225,7 +226,7 @@ int xb_init_comms(void)
                err = bind_evtchn_to_irqhandler(xen_store_evtchn, wake_waiting,
                                                0, "xenbus", &xb_waitq);
                if (err < 0) {
-                       printk(KERN_ERR "XENBUS request irq failed %i\n", err);
+                       pr_err("request irq failed %i\n", err);
                        return err;
                }