mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 00:34:20 +08:00
USB: belkin_sa.c: remove dbg() usage
dbg() is a usb-serial specific macro. This patch converts the belkin_sa.c driver to use dev_dbg() instead to tie into the dynamic debug infrastructure. CC: William Greathouse <wgreathouse@smva.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d2f20e12e9
commit
c89aa63898
@ -197,11 +197,11 @@ static void belkin_sa_read_int_callback(struct urb *urb)
|
||||
case -ENOENT:
|
||||
case -ESHUTDOWN:
|
||||
/* this urb is terminated, clean up */
|
||||
dbg("%s - urb shutting down with status: %d",
|
||||
dev_dbg(&port->dev, "%s - urb shutting down with status: %d\n",
|
||||
__func__, status);
|
||||
return;
|
||||
default:
|
||||
dbg("%s - nonzero urb status received: %d",
|
||||
dev_dbg(&port->dev, "%s - nonzero urb status received: %d\n",
|
||||
__func__, status);
|
||||
goto exit;
|
||||
}
|
||||
@ -391,7 +391,8 @@ static void belkin_sa_set_termios(struct tty_struct *tty,
|
||||
urb_value = BELKIN_SA_DATA_BITS(8);
|
||||
break;
|
||||
default:
|
||||
dbg("CSIZE was not CS5-CS8, using default of 8");
|
||||
dev_dbg(&port->dev,
|
||||
"CSIZE was not CS5-CS8, using default of 8\n");
|
||||
urb_value = BELKIN_SA_DATA_BITS(8);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user