diff options
author | 2000-09-12 20:53:10 +0000 | |
---|---|---|
committer | 2000-09-12 20:53:10 +0000 | |
commit | 90551a2024feac170ee3240f7795c02272d09a7d (patch) | |
tree | b3e98a7f3f789de985dcb2fe5e084e11821b964f /usr.bin/ssh/log.c | |
parent | Help stupid cvs fixing basic conflicts. (diff) | |
download | wireguard-openbsd-90551a2024feac170ee3240f7795c02272d09a7d.tar.xz wireguard-openbsd-90551a2024feac170ee3240f7795c02272d09a7d.zip |
multiple debug levels
Diffstat (limited to 'usr.bin/ssh/log.c')
-rw-r--r-- | usr.bin/ssh/log.c | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/usr.bin/ssh/log.c b/usr.bin/ssh/log.c index a6d9e050d35..13033ab4260 100644 --- a/usr.bin/ssh/log.c +++ b/usr.bin/ssh/log.c @@ -36,7 +36,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: log.c,v 1.9 2000/09/07 21:13:37 markus Exp $"); +RCSID("$OpenBSD: log.c,v 1.10 2000/09/12 20:53:10 markus Exp $"); #include "ssh.h" #include "xmalloc.h" @@ -93,7 +93,25 @@ debug(const char *fmt,...) { va_list args; va_start(args, fmt); - do_log(SYSLOG_LEVEL_DEBUG, fmt, args); + do_log(SYSLOG_LEVEL_DEBUG1, fmt, args); + va_end(args); +} + +void +debug2(const char *fmt,...) +{ + va_list args; + va_start(args, fmt); + do_log(SYSLOG_LEVEL_DEBUG2, fmt, args); + va_end(args); +} + +void +debug3(const char *fmt,...) +{ + va_list args; + va_start(args, fmt); + do_log(SYSLOG_LEVEL_DEBUG3, fmt, args); va_end(args); } @@ -190,7 +208,9 @@ static struct { { "ERROR", SYSLOG_LEVEL_ERROR }, { "INFO", SYSLOG_LEVEL_INFO }, { "VERBOSE", SYSLOG_LEVEL_VERBOSE }, - { "DEBUG", SYSLOG_LEVEL_DEBUG }, + { "DEBUG1", SYSLOG_LEVEL_DEBUG1 }, + { "DEBUG2", SYSLOG_LEVEL_DEBUG2 }, + { "DEBUG3", SYSLOG_LEVEL_DEBUG3 }, { NULL, 0 } }; |