Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.26-rc1-git7 /drivers/char/sx.c

Filename:/drivers/char/sx.c
Lines Added:6
Lines Deleted:3
Also changed in: (Previous) 2.6.26-rc1  2.6.25-git20  2.6.25-git19  2.6.25-git18  2.6.25-git17  2.6.25-git16 
(Following) 2.6.26-rc1-git8  2.6.26-rc1-git9  2.6.26-rc2  2.6.26-rc3  2.6.26-rc4  2.6.26-rc5 

Location
[  2.6.26-rc1-git7
  [  drivers
    [  char
       o  sx.c

Patch

diff --git a/drivers/char/sx.c b/drivers/char/sx.c
index f39f6fd..b1a7a8c 100644
--- a/drivers/char/sx.c
+++ b/drivers/char/sx.c
@@ -970,7 +970,8 @@ static int sx_set_real_termios(void *ptr)
       sx_write_channel_byte(port, hi_mask, 0x1f);
       break;
    default:
-      printk(KERN_INFO "sx: Invalid wordsize: %u\n", CFLAG & CSIZE);
+      printk(KERN_INFO "sx: Invalid wordsize: %u\n",
+         (unsigned int)CFLAG & CSIZE);
       break;
    }
 
@@ -997,7 +998,8 @@ static int sx_set_real_termios(void *ptr)
       set_bit(TTY_HW_COOK_IN, &port->gs.tty->flags);
    }
    sx_dprintk(SX_DEBUG_TERMIOS, "iflags: %x(%d) ",
-         port->gs.tty->termios->c_iflag, I_OTHER(port->gs.tty));
+         (unsigned int)port->gs.tty->termios->c_iflag,
+         I_OTHER(port->gs.tty));
 
 /* Tell line discipline whether we will do output cooking.
  * If OPOST is set and no other output flags are set then we can do output
@@ -1010,7 +1012,8 @@ static int sx_set_real_termios(void *ptr)
       clear_bit(TTY_HW_COOK_OUT, &port->gs.tty->flags);
    }
    sx_dprintk(SX_DEBUG_TERMIOS, "oflags: %x(%d)\n",
-         port->gs.tty->termios->c_oflag, O_OTHER(port->gs.tty));
+         (unsigned int)port->gs.tty->termios->c_oflag,
+         O_OTHER(port->gs.tty));
    /* port->c_dcd = sx_get_CD (port); */
    func_exit();
    return 0;


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.