From: job Date: Thu, 2 Feb 2023 20:31:37 +0000 (+0000) Subject: Emit log messages in consistent format X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d62638d78c1bb3897b2343e48e20a7fc3876d93d;p=openbsd Emit log messages in consistent format --- diff --git a/usr.sbin/bgpd/rtr_proto.c b/usr.sbin/bgpd/rtr_proto.c index c6bfa105064..d7ff4da09b8 100644 --- a/usr.sbin/bgpd/rtr_proto.c +++ b/usr.sbin/bgpd/rtr_proto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtr_proto.c,v 1.11 2023/02/01 15:37:34 job Exp $ */ +/* $OpenBSD: rtr_proto.c,v 1.12 2023/02/02 20:31:37 job Exp $ */ /* * Copyright (c) 2020 Claudio Jeker @@ -251,7 +251,7 @@ rtr_send_error(struct rtr_session *rs, enum rtr_error err, char *msg, ibuf_add(buf, msg, mlen); ibuf_close(&rs->w, buf); - log_warnx("%s: sending error report[%u] %s", log_rtr(rs), err, + log_warnx("rtr %s: sending error report[%u] %s", log_rtr(rs), err, msg ? msg : ""); }