PERFORCE change 104573 for review
John Birrell
jb at FreeBSD.org
Sun Aug 20 00:01:10 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=104573
Change 104573 by jb at jb_zoo on 2006/08/20 00:00:18
Handle newline characters properly in the puts method.
Affected files ...
.. //depot/projects/dtrace/src/sys/dev/sio/sio.c#5 edit
Differences ...
==== //depot/projects/dtrace/src/sys/dev/sio/sio.c#5 (text+ko) ====
@@ -2534,8 +2534,11 @@
{
int i;
- for (i = 0; i < num; i++)
+ for (i = 0; i < num; i++) {
+ if (p[i] == '\n')
+ sio_cnputc(cp, '\r');
sio_cnputc(cd, p[i] & 0xff);
+ }
}
static void
More information about the p4-projects
mailing list