diff options
author | Kjell Wooding <kjell@cvs.openbsd.org> | 2010-06-29 18:10:05 +0000 |
---|---|---|
committer | Kjell Wooding <kjell@cvs.openbsd.org> | 2010-06-29 18:10:05 +0000 |
commit | 4475f8e88b30b4fc82c56ae193a287deb3d0cab0 (patch) | |
tree | 0dab6e8e66aacea2f94d8576cea87eef8d058aed /usr.sbin/sasyncd/net_ctl.c | |
parent | 8fb5483d61dbd0bea53ce6f41464a8ae8df6d65c (diff) |
Having more than 2 log levels is silly. Use only 3 verbosity levels:
None (), Important (-v), All (-vv)
ok deraadt@
Diffstat (limited to 'usr.sbin/sasyncd/net_ctl.c')
-rw-r--r-- | usr.sbin/sasyncd/net_ctl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/sasyncd/net_ctl.c b/usr.sbin/sasyncd/net_ctl.c index fcd346a0ad5..d79052259fc 100644 --- a/usr.sbin/sasyncd/net_ctl.c +++ b/usr.sbin/sasyncd/net_ctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: net_ctl.c,v 1.8 2006/06/02 20:09:43 mcbride Exp $ */ +/* $OpenBSD: net_ctl.c,v 1.9 2010/06/29 18:10:04 kjell Exp $ */ /* * Copyright (c) 2005 Håkan Olsson. All rights reserved. @@ -92,7 +92,7 @@ net_ctl_handle_msg(struct syncpeer *p, u_int8_t *msg, u_int32_t msglen) switch (ntohl(ctl->type)) { case CTL_ENDSNAP: - log_msg(4, "net_ctl: got CTL_ENDSNAP from peer \"%s\"", + log_msg(2, "net_ctl: got CTL_ENDSNAP from peer \"%s\"", p->name); /* XXX More sophistication required to handle multiple peers. */ @@ -104,7 +104,7 @@ net_ctl_handle_msg(struct syncpeer *p, u_int8_t *msg, u_int32_t msglen) break; case CTL_STATE: - log_msg(4, "net_ctl: got CTL_STATE from peer \"%s\"", p->name); + log_msg(2, "net_ctl: got CTL_STATE from peer \"%s\"", p->name); nstate = (enum RUNSTATE)ntohl(ctl->data); if (net_ctl_check_state(p, nstate) == 0) net_ctl_send_ack(p, CTL_STATE, cfgstate.runstate); @@ -136,7 +136,7 @@ net_ctl_handle_msg(struct syncpeer *p, u_int8_t *msg, u_int32_t msglen) ct = "<unknown>"; else ct = ctltype[ctype]; - log_msg(4, "net_ctl: got %s ACK from peer \"%s\"", ct, + log_msg(2, "net_ctl: got %s ACK from peer \"%s\"", ct, p->name); if (ctype == CTL_STATE) { nstate = (enum RUNSTATE)ntohl(ctl->data2); @@ -206,7 +206,7 @@ net_ctl_update_state(void) for (p = LIST_FIRST(&cfgstate.peerlist); p; p = LIST_NEXT(p, link)) { if (p->socket == -1) continue; - log_msg(4, "net_ctl: sending my state %s to peer \"%s\"", + log_msg(2, "net_ctl: sending my state %s to peer \"%s\"", carp_state_name(cfgstate.runstate), p->name); net_ctl_send_state(p); } |