Add missing "%s" to VLOG_WARN_RL call.
authorBen Pfaff <blp@nicira.com>
Tue, 2 Dec 2008 05:26:57 +0000 (21:26 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 2 Dec 2008 05:26:57 +0000 (21:26 -0800)
Thanks to Justin for pointing out the problem.

lib/vconn.c

index e9e57d7fc81646a715c37222291b9489c3b47fad..e630258b22bff7c94b5031236ad6272084447412 100644 (file)
@@ -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);
             }