Commit 19dfe31c authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] sx.c printk warning fixes

drivers/char/sx.c: In function `sx_set_real_termios':
drivers/char/sx.c:934: warning: long unsigned int format, different type arg (arg 2)
drivers/char/sx.c:961: warning: long unsigned int format, different type arg (arg 2)
drivers/char/sx.c:976: warning: long unsigned int format, different type arg (arg 2)
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8c17e1eb
...@@ -931,7 +931,7 @@ static int sx_set_real_termios (void *ptr) ...@@ -931,7 +931,7 @@ static int sx_set_real_termios (void *ptr)
case CS6:sx_write_channel_byte (port, hi_mask, 0x3f);break; case CS6:sx_write_channel_byte (port, hi_mask, 0x3f);break;
case CS5:sx_write_channel_byte (port, hi_mask, 0x1f);break; case CS5:sx_write_channel_byte (port, hi_mask, 0x1f);break;
default: default:
printk (KERN_INFO "sx: Invalid wordsize: %lu\n", CFLAG & CSIZE); printk (KERN_INFO "sx: Invalid wordsize: %u\n", CFLAG & CSIZE);
break; break;
} }
...@@ -958,7 +958,7 @@ static int sx_set_real_termios (void *ptr) ...@@ -958,7 +958,7 @@ static int sx_set_real_termios (void *ptr)
} else { } else {
set_bit(TTY_HW_COOK_IN, &port->gs.tty->flags); set_bit(TTY_HW_COOK_IN, &port->gs.tty->flags);
} }
sx_dprintk (SX_DEBUG_TERMIOS, "iflags: %lx(%d) ", sx_dprintk (SX_DEBUG_TERMIOS, "iflags: %x(%d) ",
port->gs.tty->termios->c_iflag, port->gs.tty->termios->c_iflag,
I_OTHER(port->gs.tty)); I_OTHER(port->gs.tty));
...@@ -973,7 +973,7 @@ static int sx_set_real_termios (void *ptr) ...@@ -973,7 +973,7 @@ static int sx_set_real_termios (void *ptr)
} else { } else {
clear_bit(TTY_HW_COOK_OUT, &port->gs.tty->flags); clear_bit(TTY_HW_COOK_OUT, &port->gs.tty->flags);
} }
sx_dprintk (SX_DEBUG_TERMIOS, "oflags: %lx(%d)\n", sx_dprintk (SX_DEBUG_TERMIOS, "oflags: %x(%d)\n",
port->gs.tty->termios->c_oflag, port->gs.tty->termios->c_oflag,
O_OTHER(port->gs.tty)); O_OTHER(port->gs.tty));
/* port->c_dcd = sx_get_CD (port); */ /* port->c_dcd = sx_get_CD (port); */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment