diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2005-05-24 19:17:08 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2005-05-24 19:17:08 +0000 |
commit | 3612df88f1d62071732935fd53033566a84b5b5d (patch) | |
tree | d133da22f7750182f1ac24a3d806bbac0aab18b0 /usr.sbin | |
parent | 093729d8740683682a5470cba220219f730b1307 (diff) |
logging tweaks
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/sasyncd/net_ctl.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.sbin/sasyncd/net_ctl.c b/usr.sbin/sasyncd/net_ctl.c index e03a68e7998..17d169506f3 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.4 2005/05/23 19:53:27 ho Exp $ */ +/* $OpenBSD: net_ctl.c,v 1.5 2005/05/24 19:17:07 ho Exp $ */ /* * Copyright (c) 2005 Håkan Olsson. All rights reserved. @@ -50,8 +50,6 @@ struct ctlmsg { u_int32_t data2; }; -int listen_socket; - static int net_ctl_check_state(struct syncpeer *p, enum RUNSTATE nstate) { @@ -94,7 +92,7 @@ net_ctl_handle_msg(struct syncpeer *p, u_int8_t *msg, u_int32_t msglen) switch (ntohl(ctl->type)) { case CTL_STATE: - log_msg(3, "net_ctl: got CTL_STATE from peer \"%s\"", p->name); + log_msg(5, "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); @@ -126,7 +124,7 @@ net_ctl_handle_msg(struct syncpeer *p, u_int8_t *msg, u_int32_t msglen) ct = "<unknown>"; else ct = ctltype[ctype]; - log_msg(3, "net_ctl: got %s ACK from peer \"%s\"", ct, + log_msg(5, "net_ctl: got %s ACK from peer \"%s\"", ct, p->name); if (ctype == CTL_STATE) { nstate = (enum RUNSTATE)ntohl(ctl->data2); @@ -191,7 +189,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(2, "net_ctl: sending my state %s to peer \"%s\"", + log_msg(3, "net_ctl: sending my state %s to peer \"%s\"", carpstate[cfgstate.runstate], p->name); net_ctl_send_state(p); } |