diff options
author | 1999-10-16 20:54:54 +0000 | |
---|---|---|
committer | 1999-10-16 20:54:54 +0000 | |
commit | 8747197a4a479407167d01f46017ddb99cc3cae2 (patch) | |
tree | 05bcaf3a38a007374a76375049a031df97f2c403 | |
parent | Formatting fixes. (diff) | |
download | wireguard-openbsd-8747197a4a479407167d01f46017ddb99cc3cae2.tar.xz wireguard-openbsd-8747197a4a479407167d01f46017ddb99cc3cae2.zip |
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); } |