irda: Convert IRDA_DEBUG to pr_debug
Use the normal kernel debugging mechanism which also enables dynamic_debug at the same time. Other miscellanea: o Remove sysctl for irda_debug o Remove function tracing like uses (use ftrace instead) o Coalesce formats o Realign arguments o Remove unnecessary OOM messages Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
8d326d818a
commit
955a9d202f
@@ -56,8 +56,6 @@ static void ircomm_tty_change_speed(struct ircomm_tty_cb *self,
|
||||
unsigned int cflag, cval;
|
||||
int baud;
|
||||
|
||||
IRDA_DEBUG(2, "%s()\n", __func__ );
|
||||
|
||||
if (!self->ircomm)
|
||||
return;
|
||||
|
||||
@@ -150,8 +148,6 @@ void ircomm_tty_set_termios(struct tty_struct *tty,
|
||||
struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) tty->driver_data;
|
||||
unsigned int cflag = tty->termios.c_cflag;
|
||||
|
||||
IRDA_DEBUG(2, "%s()\n", __func__ );
|
||||
|
||||
if ((cflag == old_termios->c_cflag) &&
|
||||
(RELEVANT_IFLAG(tty->termios.c_iflag) ==
|
||||
RELEVANT_IFLAG(old_termios->c_iflag)))
|
||||
@@ -199,8 +195,6 @@ int ircomm_tty_tiocmget(struct tty_struct *tty)
|
||||
struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) tty->driver_data;
|
||||
unsigned int result;
|
||||
|
||||
IRDA_DEBUG(2, "%s()\n", __func__ );
|
||||
|
||||
if (tty->flags & (1 << TTY_IO_ERROR))
|
||||
return -EIO;
|
||||
|
||||
@@ -224,8 +218,6 @@ int ircomm_tty_tiocmset(struct tty_struct *tty,
|
||||
{
|
||||
struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) tty->driver_data;
|
||||
|
||||
IRDA_DEBUG(2, "%s()\n", __func__ );
|
||||
|
||||
if (tty->flags & (1 << TTY_IO_ERROR))
|
||||
return -EIO;
|
||||
|
||||
@@ -266,8 +258,6 @@ static int ircomm_tty_get_serial_info(struct ircomm_tty_cb *self,
|
||||
if (!retinfo)
|
||||
return -EFAULT;
|
||||
|
||||
IRDA_DEBUG(2, "%s()\n", __func__ );
|
||||
|
||||
memset(&info, 0, sizeof(info));
|
||||
info.line = self->line;
|
||||
info.flags = self->port.flags;
|
||||
@@ -302,8 +292,6 @@ static int ircomm_tty_set_serial_info(struct ircomm_tty_cb *self,
|
||||
struct serial_struct new_serial;
|
||||
struct ircomm_tty_cb old_state, *state;
|
||||
|
||||
IRDA_DEBUG(0, "%s()\n", __func__ );
|
||||
|
||||
if (copy_from_user(&new_serial,new_info,sizeof(new_serial)))
|
||||
return -EFAULT;
|
||||
|
||||
@@ -376,8 +364,6 @@ int ircomm_tty_ioctl(struct tty_struct *tty,
|
||||
struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) tty->driver_data;
|
||||
int ret = 0;
|
||||
|
||||
IRDA_DEBUG(2, "%s()\n", __func__ );
|
||||
|
||||
if ((cmd != TIOCGSERIAL) && (cmd != TIOCSSERIAL) &&
|
||||
(cmd != TIOCSERCONFIG) && (cmd != TIOCSERGSTRUCT) &&
|
||||
(cmd != TIOCMIWAIT) && (cmd != TIOCGICOUNT)) {
|
||||
@@ -393,11 +379,11 @@ int ircomm_tty_ioctl(struct tty_struct *tty,
|
||||
ret = ircomm_tty_set_serial_info(self, (struct serial_struct __user *) arg);
|
||||
break;
|
||||
case TIOCMIWAIT:
|
||||
IRDA_DEBUG(0, "(), TIOCMIWAIT, not impl!\n");
|
||||
pr_debug("(), TIOCMIWAIT, not impl!\n");
|
||||
break;
|
||||
|
||||
case TIOCGICOUNT:
|
||||
IRDA_DEBUG(0, "%s(), TIOCGICOUNT not impl!\n", __func__ );
|
||||
pr_debug("%s(), TIOCGICOUNT not impl!\n", __func__);
|
||||
#if 0
|
||||
save_flags(flags); cli();
|
||||
cnow = driver->icount;
|
||||
|
Reference in New Issue
Block a user