git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
n_tty: do O_ONLCR translation as a single write
[safe/jmp/linux-2.6]
/
drivers
/
char
/
n_tty.c
diff --git
a/drivers/char/n_tty.c
b/drivers/char/n_tty.c
index
973be2f
..
4e28b35
100644
(file)
--- a/
drivers/char/n_tty.c
+++ b/
drivers/char/n_tty.c
@@
-300,8
+300,7
@@
static int do_output_char(unsigned char c, struct tty_struct *tty, int space)
if (space < 2)
return -1;
tty->canon_column = tty->column = 0;
- tty_put_char(tty, '\r');
- tty_put_char(tty, c);
+ tty->ops->write(tty, "\r\n", 2);
return 2;
}
tty->canon_column = tty->column;