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/vt.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/vt.c')
-rw-r--r-- | drivers/char/vt.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/char/vt.c b/drivers/char/vt.c index 5dfbfa7..0c80c68 100644 --- a/drivers/char/vt.c +++ b/drivers/char/vt.c @@ -2129,11 +2129,7 @@ static int do_con_write(struct tty_struct *tty, const unsigned char *buf, int co currcons = vc->vc_num; if (!vc_cons_allocated(currcons)) { /* could this happen? */ - static int error = 0; - if (!error) { - error = 1; - printk("con_write: tty %d not allocated\n", currcons+1); - } + printk_once("con_write: tty %d not allocated\n", currcons+1); release_console_sem(); return 0; } |