X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fvconn-stream.c;h=82854e91125822112d450efd404246f48320a2c6;hb=a23aab1fc2f66b63ba9b7e4b9c9a8f6d58c367d0;hp=e6c2946d4d6d9232b8a1a654c7a47c9cdbc08852;hpb=5136ce492c414f377f7be9ae32b259abb9f76580;p=openvswitch diff --git a/lib/vconn-stream.c b/lib/vconn-stream.c index e6c2946d..82854e91 100644 --- a/lib/vconn-stream.c +++ b/lib/vconn-stream.c @@ -34,7 +34,7 @@ #include "vconn.h" #include "vlog.h" -VLOG_DEFINE_THIS_MODULE(vconn_stream) +VLOG_DEFINE_THIS_MODULE(vconn_stream); /* Active stream socket vconn. */ @@ -173,8 +173,7 @@ vconn_stream_recv(struct vconn *vconn, struct ofpbuf **bufferp) oh = s->rxbuf->data; rx_len = ntohs(oh->length); if (rx_len < sizeof(struct ofp_header)) { - VLOG_ERR_RL(&rl, "received too-short ofp_header (%zu bytes)", - rx_len); + VLOG_ERR_RL(&rl, "received too-short ofp_header (%d bytes)", rx_len); return EPROTO; } else if (s->rxbuf->size < rx_len) { int retval = vconn_stream_recv__(s, rx_len);