From: Ethan Jackson Date: Wed, 11 Apr 2012 01:35:04 +0000 (-0700) Subject: bridge: Rate limit default address warnings. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e041ba51410125ec74cba2b5f0b6f1b0481baa9;p=openvswitch bridge: Rate limit default address warnings. This information is typically not more useful if displayed more often. Signed-off-by: Ethan Jackson --- diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 3833974f..e5b546bf 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -1405,10 +1405,11 @@ bridge_pick_local_hw_addr(struct bridge *br, uint8_t ea[ETH_ADDR_LEN], VLOG_DBG("bridge %s: using bridge Ethernet address "ETH_ADDR_FMT, br->name, ETH_ADDR_ARGS(ea)); } else { + static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 10); memcpy(ea, br->default_ea, ETH_ADDR_LEN); *hw_addr_iface = NULL; - VLOG_WARN("bridge %s: using default bridge Ethernet " - "address "ETH_ADDR_FMT, br->name, ETH_ADDR_ARGS(ea)); + VLOG_WARN_RL(&rl, "bridge %s: using default bridge Ethernet " + "address "ETH_ADDR_FMT, br->name, ETH_ADDR_ARGS(ea)); } hmapx_destroy(&mirror_output_ports);