diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2009-08-09 19:54:03 (GMT) |
---|---|---|
committer | Live-CD User <linux@linux.site> | 2009-09-19 20:13:35 (GMT) |
commit | 9074d963f4a5ab9c45e9edea32c3df4960bc7490 (patch) | |
tree | c23305914cd22e11f7ea918b9a6d2df7a30ed91c /drivers/char/tty_ioctl.c | |
parent | e92166517e3ca9bfb416f91e69cf0373b55b6ede (diff) | |
download | linux-fsl-qoriq-9074d963f4a5ab9c45e9edea32c3df4960bc7490.tar.xz |
tty: vt: use printk_once
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/char/tty_ioctl.c')
-rw-r--r-- | drivers/char/tty_ioctl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/char/tty_ioctl.c b/drivers/char/tty_ioctl.c index ad6ba4e..8e67d5c 100644 --- a/drivers/char/tty_ioctl.c +++ b/drivers/char/tty_ioctl.c @@ -393,9 +393,7 @@ void tty_termios_encode_baud_rate(struct ktermios *termios, termios->c_cflag |= (BOTHER << IBSHIFT); #else if (ifound == -1 || ofound == -1) { - static int warned; - if (!warned++) - printk(KERN_WARNING "tty: Unable to return correct " + printk_once(KERN_WARNING "tty: Unable to return correct " "speed data as your architecture needs updating.\n"); } #endif |