mirror of https://github.com/nirenjan/libx52.git
Replace err/dbg macros with pr_err/pr_debug
err macro has been removed entirely from the Linux kernel starting from around v3.5, while the dbg macro has been deprecated. Since the lines that were using err/dbg did not have access to the device, simply log as a generic kernel log.pull/3/head
parent
46f9995959
commit
b752c3e46b
|
@ -578,7 +578,7 @@ static int __init x52_init(void)
|
||||||
|
|
||||||
retval = usb_register(&x52_driver);
|
retval = usb_register(&x52_driver);
|
||||||
if (retval) {
|
if (retval) {
|
||||||
err("usb_register failed (errno=%d)\n", retval);
|
pr_err("usb_register failed (errno=%d)\n", retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
|
|
|
@ -150,11 +150,11 @@ void x52_irq_handler(struct urb *urb)
|
||||||
case -ENOENT:
|
case -ENOENT:
|
||||||
case -ESHUTDOWN:
|
case -ESHUTDOWN:
|
||||||
/* This URB is terminated, clean up */
|
/* This URB is terminated, clean up */
|
||||||
dbg("%s - URB shutting down with status: %d",
|
pr_debug("%s - URB shutting down with status: %d",
|
||||||
__func__, status);
|
__func__, status);
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
dbg("%s - nonzero URB status received: %d",
|
pr_debug("%s - nonzero URB status received: %d",
|
||||||
__func__, status);
|
__func__, status);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
@ -172,7 +172,7 @@ void x52_irq_handler(struct urb *urb)
|
||||||
error:
|
error:
|
||||||
retval = usb_submit_urb(urb, GFP_ATOMIC);
|
retval = usb_submit_urb(urb, GFP_ATOMIC);
|
||||||
if (retval)
|
if (retval)
|
||||||
err ("%s - usb_submit_urb failed with result %d",
|
pr_err("%s - usb_submit_urb failed with result %d",
|
||||||
__func__, retval);
|
__func__, retval);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue