From bc47dcfdf3c9c6d6c5b2863df4550a2b386a47c4 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 30 Sep 2013 14:47:41 -0700 Subject: [PATCH] bfd: Improve log message. Signed-off-by: Ben Pfaff --- lib/bfd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/bfd.c b/lib/bfd.c index 115053bee..740f4fc1a 100644 --- a/lib/bfd.c +++ b/lib/bfd.c @@ -639,8 +639,10 @@ bfd_process_packet(struct bfd *bfd, const struct flow *flow, msg = ofpbuf_at(p, (uint8_t *)p->l7 - (uint8_t *)p->data, BFD_PACKET_LEN); if (!msg) { - VLOG_INFO_RL(&rl, "%s: Received unparseable BFD control message.", - bfd->name); + VLOG_INFO_RL(&rl, "%s: Received too-short BFD control message (only " + "%td bytes long, at least %d required).", + bfd->name, (uint8_t *) ofpbuf_tail(p) - (uint8_t *) p->l7, + BFD_PACKET_LEN); goto out; } -- 2.47.0