From: Ian Jackson Date: Sat, 21 Sep 2019 15:46:34 +0000 (+0100) Subject: util: Reorder information in NAK log messages X-Git-Tag: v0.5.0~9 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=09d1e3d09a6d0220e257a634926ef90d2e7ef49e;p=secnet.git util: Reorder information in NAK log messages In particular, put the supplied reason string last so that it will be unambiguous. And putting the message type first seems more natural. Signed-off-by: Ian Jackson --- diff --git a/util.c b/util.c index 2411962..e6f0141 100644 --- a/util.c +++ b/util.c @@ -526,10 +526,11 @@ void send_nak(const struct comm_addr *dest, uint32_t our_index, buf_append_uint32(buf,our_index); buf_append_uint32(buf,LABEL_NAK); if (logwhy) - Message(M_INFO,"%s: %08"PRIx32"<-%08"PRIx32": %08"PRIx32":" - " %s; sending NAK\n", + Message(M_INFO,"%s: sending NAK for" + " %08"PRIx32" %08"PRIx32"<-%08"PRIx32":" + " %s\n", comm_addr_to_string(dest), - our_index, their_index, msgtype, logwhy); + msgtype, our_index, their_index, logwhy); dest->comm->sendmsg(dest->comm->st, buf, dest, 0); }