gigaset: use pr_err() and pr_info()
Switch from private printk wrapper macros to using pr_err() and pr_info() from linux/kernel.h, at the same time unifying a few error messages. Signed-off-by: Tilman Schmidt <tilman@imap.cc> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
4d8cd00260
commit
c8770dcabd
@@ -42,7 +42,7 @@ static int writebuf_from_LL(int driverID, int channel, int ack,
|
||||
unsigned skblen;
|
||||
|
||||
if (!(cs = gigaset_get_cs_by_id(driverID))) {
|
||||
err("%s: invalid driver ID (%d)", __func__, driverID);
|
||||
pr_err("%s: invalid driver ID (%d)\n", __func__, driverID);
|
||||
return -ENODEV;
|
||||
}
|
||||
if (channel < 0 || channel >= cs->channels) {
|
||||
@@ -119,7 +119,7 @@ static int command_from_LL(isdn_ctrl *cntrl)
|
||||
gigaset_debugdrivers();
|
||||
|
||||
if (!cs) {
|
||||
err("%s: invalid driver ID (%d)", __func__, cntrl->driver);
|
||||
pr_err("%s: invalid driver ID (%d)\n", __func__, cntrl->driver);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user