summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2006-04-01 12:09:46 +0000
committerMatt Johnston <matt@ucc.asn.au>2006-04-01 12:09:46 +0000
commit2a7924bdb9b492e78e01b6681b71e47d5db397f0 (patch)
tree0d436502ec265ff14d5a4f58eb4b5c8b351291bc
parentd6d67025fce029d66bc0aee1002851dd4a0e4531 (diff)
downloaddropbear-ucc-axis-hack.tar.gz
dropbear_log to stderr since it works nowucc-axis-hack
-rw-r--r--dbutil.c2
-rw-r--r--svr-session.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/dbutil.c b/dbutil.c
index 793e2e5..db13fd6 100644
--- a/dbutil.c
+++ b/dbutil.c
@@ -121,7 +121,7 @@ static void generic_dropbear_log(int UNUSED(priority), const char* format,
vsnprintf(printbuf, sizeof(printbuf), format, param);
- printf( "%s\n", printbuf);
+ fprintf( stderr, "%s\n", printbuf);
}
diff --git a/svr-session.c b/svr-session.c
index 193cdc8..3ca0adb 100644
--- a/svr-session.c
+++ b/svr-session.c
@@ -188,7 +188,7 @@ void svr_dropbear_log(int priority, const char* format, va_list param) {
datestr[0] = '?'; datestr[1] = '\0';
}
#endif
- printf( "[%d] %d %s\n", getpid(), timesec, printbuf);
+ fprintf( stderr, "[%d] %d %s\n", getpid(), timesec, printbuf);
}
}