diff --git a/kernel_module/x52joy_input.c b/kernel_module/x52joy_input.c index a9b844a..5acb8c3 100644 --- a/kernel_module/x52joy_input.c +++ b/kernel_module/x52joy_input.c @@ -150,11 +150,13 @@ void x52_irq_handler(struct urb *urb) case -ENOENT: case -ESHUTDOWN: /* This URB is terminated, clean up */ - pr_debug("%s - URB shutting down with status: %d", + dev_dbg(joy->idev->dev.parent, + "%s - URB shutting down with status: %d", __func__, status); return; default: - pr_debug("%s - nonzero URB status received: %d", + dev_dbg(joy->idev->dev.parent, + "%s - nonzero URB status received: %d", __func__, status); goto error; } @@ -172,7 +174,8 @@ void x52_irq_handler(struct urb *urb) error: retval = usb_submit_urb(urb, GFP_ATOMIC); if (retval) - pr_err("%s - usb_submit_urb failed with result %d", + dev_err(joy->idev->dev.parent, + "%s - usb_submit_urb failed with result %d", __func__, retval); }