Log error messages instead of calling printf.
authorJustin Pettit <jpettit@nicira.com>
Fri, 13 Mar 2009 20:30:14 +0000 (13:30 -0700)
committerJustin Pettit <jpettit@nicira.com>
Fri, 13 Mar 2009 23:37:50 +0000 (16:37 -0700)
vswitchd/mgmt.c

index 22eaf7e81fa27eb284efffa1d7a6986d74bd3503..1e8a05f4010b6590dd74afa803d232aac7e98569 100644 (file)
@@ -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));