summaryrefslogtreecommitdiff
path: root/ovn
diff options
context:
space:
mode:
authorBrian Haley <bhaley@redhat.com>2019-02-28 13:06:50 -0500
committerBen Pfaff <blp@ovn.org>2019-02-28 11:19:11 -0800
commit8f7231a84d626f6355d5f241dfcd77b7e30f5246 (patch)
tree5e77d926c8ef4bc60b2b12b801c4772c3394a79d /ovn
parent403a6a0cb003f1d48b0a3cbf11a2806c45e9d076 (diff)
downloadopenvswitch-8f7231a84d626f6355d5f241dfcd77b7e30f5246.tar.gz
ovn: Make DHCP log messages unique
Two messags were using the same string, add info to one to make it unique. Also cleaned-up some of the others to make them consistent throughout. Signed-off-by: Brian Haley <haleyb.dev@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ovn')
-rw-r--r--ovn/controller/pinctrl.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/ovn/controller/pinctrl.c b/ovn/controller/pinctrl.c
index 9250a71bd..655a85f74 100644
--- a/ovn/controller/pinctrl.c
+++ b/ovn/controller/pinctrl.c
@@ -622,12 +622,13 @@ pinctrl_handle_put_dhcp_opts(
in_dhcp_ptr += sizeof *in_dhcp_data;
if (in_dhcp_ptr > end) {
static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
- VLOG_WARN_RL(&rl, "Invalid or incomplete DHCP packet received");
+ VLOG_WARN_RL(&rl, "Invalid or incomplete DHCP packet received, "
+ "bad data length");
goto exit;
}
if (in_dhcp_data->op != DHCP_OP_REQUEST) {
static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
- VLOG_WARN_RL(&rl, "Invalid opcode in the DHCP packet : %d",
+ VLOG_WARN_RL(&rl, "Invalid opcode in the DHCP packet: %d",
in_dhcp_data->op);
goto exit;
}
@@ -692,7 +693,7 @@ pinctrl_handle_put_dhcp_opts(
if (*in_dhcp_msg_type != DHCP_MSG_DISCOVER &&
*in_dhcp_msg_type != DHCP_MSG_REQUEST) {
static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
- VLOG_WARN_RL(&rl, "Invalid DHCP message type : %d", *in_dhcp_msg_type);
+ VLOG_WARN_RL(&rl, "Invalid DHCP message type: %d", *in_dhcp_msg_type);
goto exit;
}
@@ -1024,13 +1025,13 @@ pinctrl_handle_put_dhcpv6_opts(
if (!in_opt_client_id) {
VLOG_WARN_RL(&rl, "DHCPv6 option - Client id not present in the "
- " DHCPv6 packet");
+ "DHCPv6 packet");
goto exit;
}
if (!iaid && in_dhcpv6_msg_type != DHCPV6_MSG_TYPE_INFO_REQ) {
VLOG_WARN_RL(&rl, "DHCPv6 option - IA NA not present in the "
- " DHCPv6 packet");
+ "DHCPv6 packet");
goto exit;
}
@@ -2391,8 +2392,8 @@ extract_addresses_with_port(const char *addresses,
if (lexer.token.type != LEX_T_STRING) {
static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 1);
VLOG_INFO_RL(&rl,
- "Syntax error: expecting quoted string after"
- " 'is_chassis_resident' in address '%s'", addresses);
+ "Syntax error: expecting quoted string after "
+ "'is_chassis_resident' in address '%s'", addresses);
lexer_destroy(&lexer);
return false;
}