diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2015-12-07 16:05:57 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2015-12-07 16:05:57 +0000 |
commit | 4c69f3e7de850c57bddfcb5a8e878f21787aaf14 (patch) | |
tree | 9f832b8a43fc2b118296cb804f317de8c94fa5a8 /usr.sbin/relayd/proc.c | |
parent | 1ecf72b8b22c44113854bcbef3730d13e71035c5 (diff) |
Add imsg "peerid" to debug messages (only within -DDEBUG).
Diffstat (limited to 'usr.sbin/relayd/proc.c')
-rw-r--r-- | usr.sbin/relayd/proc.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.sbin/relayd/proc.c b/usr.sbin/relayd/proc.c index 6652127198d..c498685daaa 100644 --- a/usr.sbin/relayd/proc.c +++ b/usr.sbin/relayd/proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.c,v 1.26 2015/12/05 13:13:11 claudio Exp $ */ +/* $OpenBSD: proc.c,v 1.27 2015/12/07 16:05:56 reyk Exp $ */ /* * Copyright (c) 2010 - 2014 Reyk Floeter <reyk@openbsd.org> @@ -474,9 +474,9 @@ proc_dispatch(int fd, short event, void *arg) break; #if DEBUG > 1 - log_debug("%s: %s %d got imsg %d from %s %d", + log_debug("%s: %s %d got imsg %d peerid %d from %s %d", __func__, title, ps->ps_instance + 1, - imsg.hdr.type, p->p_title, p->p_instance); + imsg.hdr.type, imsg.hdr.peerid, p->p_title, p->p_instance); #endif /* @@ -498,9 +498,11 @@ proc_dispatch(int fd, short event, void *arg) log_verbose(verbose); break; default: - log_warnx("%s: %s %d got invalid imsg %d from %s %d", + log_warnx("%s: %s %d got invalid imsg %d peerid %d " + "from %s %d", __func__, title, ps->ps_instance + 1, - imsg.hdr.type, p->p_title, p->p_instance); + imsg.hdr.type, imsg.hdr.peerid, + p->p_title, p->p_instance); fatalx(__func__); } imsg_free(&imsg); |