summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-03-28 22:46:10 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-03-28 22:46:10 +0000
commit5bf5880f231f5a1a1a950f5a5d4a7a94608eb658 (patch)
treef410be24c15cebf90ce2e1222573df53a7628099 /usr.bin/cvs
parent344c07e7038822afee35bc582f83da76cbdd8bb3 (diff)
make LP_TRACE messages go through again, and assign them a level of
LOG_DEBUG for the syslog facility ok xsa@
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/log.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/cvs/log.c b/usr.bin/cvs/log.c
index 10875ef1ac9..5a64a58ecae 100644
--- a/usr.bin/cvs/log.c
+++ b/usr.bin/cvs/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.12 2005/03/26 08:09:54 tedu Exp $ */
+/* $OpenBSD: log.c,v 1.13 2005/03/28 22:46:09 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -41,7 +41,7 @@ extern char *__progname;
#ifdef unused
-static char *cvs_log_levels[] = {
+static char *cvs_log_levels[LP_MAX + 1] = {
"debug",
"info",
"notice",
@@ -50,10 +50,11 @@ static char *cvs_log_levels[] = {
"alert",
"error",
"abort",
+ "trace",
};
#endif
-static int cvs_slpriomap[] = {
+static int cvs_slpriomap[LP_MAX + 1] = {
LOG_DEBUG,
LOG_INFO,
LOG_NOTICE,
@@ -62,6 +63,7 @@ static int cvs_slpriomap[] = {
LOG_ALERT,
LOG_ERR,
LOG_ERR,
+ LOG_DEBUG,
};
static u_int cvs_log_dest = LD_STD;
@@ -204,7 +206,7 @@ cvs_vlog(u_int level, const char *fmt, va_list vap)
char prefix[64], buf[1024], ebuf[32];
FILE *out;
- if (level >= LP_MAX)
+ if (level > LP_MAX)
return (-1);
/* apply any filters */