[srvx-commits] CVS: services/src log.c,1.51,1.52
Brought to you by:
entrope
|
From: Zoot <zo...@us...> - 2003-07-08 01:24:04
|
Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv9047/src
Modified Files:
log.c
Log Message:
Be more careful about requiring the replay target be specified explicitly.
Index: log.c
===================================================================
RCS file: /cvsroot/srvx/services/src/log.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -r1.51 -r1.52
*** log.c 8 Jul 2003 00:51:33 -0000 1.51
--- log.c 8 Jul 2003 01:24:01 -0000 1.52
***************
*** 241,244 ****
--- 241,245 ----
char *cont;
enum log_severity bound;
+ int first;
cont = strchr(buffer, ',');
***************
*** 247,251 ****
for (bound = 0; bound < LOG_NUM_SEVERITIES; bound++) {
/* make people explicitly specify replay targets */
! if (bound != LOG_REPLAY) targets[bound] = 1;
}
} else if (buffer[0] == '<') {
--- 248,253 ----
for (bound = 0; bound < LOG_NUM_SEVERITIES; bound++) {
/* make people explicitly specify replay targets */
! if (bound != LOG_REPLAY)
! targets[bound] = 1;
}
} else if (buffer[0] == '<') {
***************
*** 255,259 ****
bound = find_severity(buffer+1);
}
! while (bound > 0) targets[bound--] = 1;
} else if (buffer[0] == '>') {
if (buffer[1] == '=') {
--- 257,267 ----
bound = find_severity(buffer+1);
}
! for (first = 1; bound > 0; bound--) {
! /* make people explicitly specify replay targets */
! if (bound != LOG_REPLAY || first) {
! targets[bound] = 1;
! first = 0;
! }
! }
} else if (buffer[0] == '>') {
if (buffer[1] == '=') {
***************
*** 262,266 ****
bound = find_severity(buffer+1) + 1;
}
! while (bound < LOG_NUM_SEVERITIES) targets[bound++] = 1;
} else {
bound = find_severity(buffer);
--- 270,280 ----
bound = find_severity(buffer+1) + 1;
}
! for (first = 1; bound < LOG_NUM_SEVERITIES; bound++) {
! /* make people explicitly specify replay targets */
! if (bound != LOG_REPLAY || first) {
! targets[bound] = 1;
! first = 0;
! }
! }
} else {
bound = find_severity(buffer);
|