From: Ben Pfaff Date: Mon, 30 Sep 2013 21:47:41 +0000 (-0700) Subject: bfd: Improve log message. X-Git-Tag: sliver-openvswitch-2.0.90-1~6^2~21 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=bc47dcfdf3c9c6d6c5b2863df4550a2b386a47c4;p=sliver-openvswitch.git bfd: Improve log message. Signed-off-by: Ben Pfaff --- 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; }