X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fvconn.c;h=e630258b22bff7c94b5031236ad6272084447412;hb=5d69c233557908e25f25acaa8d21da10de1a2868;hp=b37656a75b6ce8b517e121974d7fc69d6a24a00c;hpb=949a799037e6f261cfa15c63f5bea50e5b4c5075;p=sliver-openvswitch.git diff --git a/lib/vconn.c b/lib/vconn.c index b37656a75..e630258b2 100644 --- a/lib/vconn.c +++ b/lib/vconn.c @@ -319,7 +319,7 @@ vcs_recv_hello(struct vconn *vconn) struct ds msg = DS_EMPTY_INITIALIZER; ds_put_format(&msg, "%s: extra-long hello:\n", vconn->name); ds_put_hex_dump(&msg, b->data, b->size, 0, true); - VLOG_WARN_RL(&rl, ds_cstr(&msg)); + VLOG_WARN_RL(&rl, "%s", ds_cstr(&msg)); ds_destroy(&msg); } @@ -468,11 +468,11 @@ do_recv(struct vconn *vconn, struct ofpbuf **msgp) && oh->type != OFPT_VENDOR) { if (vconn->version < 0) { - VLOG_ERR_RL(&rl, "%s: received OpenFlow version %02"PRIx8" " + VLOG_ERR_RL(&rl, "%s: received OpenFlow message type %"PRIu8" " "before version negotiation complete", - vconn->name, oh->version); + vconn->name, oh->type); } else { - VLOG_ERR_RL(&rl, "%s: received OpenFlow version %02"PRIx8" " + VLOG_ERR_RL(&rl, "%s: received OpenFlow version 0x%02"PRIx8" " "!= expected %02x", vconn->name, oh->version, vconn->version); }