Less or better chatter.

This commit is contained in:
Russ Cox
2005-10-18 18:19:23 +00:00
parent 74d480c1e8
commit d920d42c8b
2 changed files with 15 additions and 31 deletions

View File

@ -147,33 +147,6 @@ putstrn0(char *str, int n, int usewrite)
qiwrite(kprintoq, str, n);
}else if(screenputs != nil)
screenputs(str, n);
if(serialoq == nil){
uartputs(str, n);
return;
}
while(n > 0) {
t = memchr(str, '\n', n);
if(t && !kbd.raw) {
m = t-str;
if(usewrite){
qwrite(serialoq, str, m);
qwrite(serialoq, "\r\n", 2);
} else {
qiwrite(serialoq, str, m);
qiwrite(serialoq, "\r\n", 2);
}
n -= m+1;
str = t+1;
} else {
if(usewrite)
qwrite(serialoq, str, n);
else
qiwrite(serialoq, str, n);
break;
}
}
}
void