diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 1999-10-16 20:54:55 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 1999-10-16 20:54:55 +0000 |
commit | 79a26226dedd6aaa39a8b39c4f3e8343d930d392 (patch) | |
tree | eb5fb18ea03f48bfae5fe8af88835a8c0a1a18a9 | |
parent | cd76c8c96fc92da5772327f795076f56fcb92597 (diff) |
the logging output needs \r, say "debug: " when debuggin
-rw-r--r-- | usr.bin/ssh/log-client.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/ssh/log-client.c b/usr.bin/ssh/log-client.c index 651f991e3f1..e569d1e70f8 100644 --- a/usr.bin/ssh/log-client.c +++ b/usr.bin/ssh/log-client.c @@ -14,7 +14,7 @@ Client-side versions of debug(), log(), etc. These print to stderr. */ #include "includes.h" -RCSID("$Id: log-client.c,v 1.1 1999/09/26 20:53:36 deraadt Exp $"); +RCSID("$Id: log-client.c,v 1.2 1999/10/16 20:54:54 markus Exp $"); #include "xmalloc.h" #include "ssh.h" @@ -37,7 +37,7 @@ void log(const char *fmt, ...) return; va_start(args, fmt); vfprintf(stderr, fmt, args); - fprintf(stderr, "\n"); + fprintf(stderr, "\r\n"); va_end(args); } @@ -47,8 +47,9 @@ void debug(const char *fmt, ...) if (log_quiet || !log_debug) return; va_start(args, fmt); + fprintf(stderr, "debug: "); vfprintf(stderr, fmt, args); - fprintf(stderr, "\n"); + fprintf(stderr, "\r\n"); va_end(args); } @@ -59,7 +60,7 @@ void error(const char *fmt, ...) return; va_start(args, fmt); vfprintf(stderr, fmt, args); - fprintf(stderr, "\n"); + fprintf(stderr, "\r\n"); va_end(args); } @@ -129,7 +130,7 @@ void fatal(const char *fmt, ...) va_start(args, fmt); vfprintf(stderr, fmt, args); - fprintf(stderr, "\n"); + fprintf(stderr, "\r\n"); va_end(args); exit(255); } |