From: Justin Pettit Date: Fri, 13 Mar 2009 20:30:14 +0000 (-0700) Subject: Log error messages instead of calling printf. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=708124f348a1eb0013723fb382ba4d4cc2b82b87;p=openvswitch Log error messages instead of calling printf. --- diff --git a/vswitchd/mgmt.c b/vswitchd/mgmt.c index 22eaf7e8..1e8a05f4 100644 --- a/vswitchd/mgmt.c +++ b/vswitchd/mgmt.c @@ -319,7 +319,8 @@ send_resources_update(uint32_t xid, bool use_xid) struct ofmptsr_dp *dp_tlv; uint64_t dp_id = bridge_get_datapathid(br_list.names[i]); if (!dp_id) { - printf("xxx Bridge %s doesn't seem to exist!", br_list.names[i]); + VLOG_WARN_RL(&rl, "bridge %s doesn't seem to exist", + br_list.names[i]); continue; } dp_tlv = ofpbuf_put_zeros(buffer, sizeof(*dp_tlv));