From acfa104846ec62a8194dc38c58d7dd9e066c10b2 Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Sat, 13 Feb 2010 11:26:42 +0000 Subject: [PATCH] do_print.c: fix CR/LF handling git-svn-id: svn://kolibrios.org@1409 a494cfbc-eb01-0410-851d-a64ba20cac60 --- drivers/ddk/stdio/doprnt.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/ddk/stdio/doprnt.c b/drivers/ddk/stdio/doprnt.c index 6e7ca49083..b963431a31 100644 --- a/drivers/ddk/stdio/doprnt.c +++ b/drivers/ddk/stdio/doprnt.c @@ -128,13 +128,11 @@ _doprnt(register const char *fmt, va_list ap, FILE *stream) while (c = *fmt++) { if (c != '%') { -#ifdef CPM if (c == '\n') { if (putc('\r', stream) == EOF) return nrchars ? -nrchars : -1; nrchars++; } -#endif if (putc(c, stream) == EOF) return nrchars ? -nrchars : -1; nrchars++; @@ -184,13 +182,11 @@ _doprnt(register const char *fmt, va_list ap, FILE *stream) switch (c = *fmt++) { default: -#ifdef CPM if (c == '\n') { if (putc('\r', stream) == EOF) return nrchars ? -nrchars : -1; nrchars++; } -#endif if (putc(c, stream) == EOF) return nrchars ? -nrchars : -1; nrchars++;