aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/dhcp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/dhcp')
-rw-r--r--src/vnet/dhcp/client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vnet/dhcp/client.c b/src/vnet/dhcp/client.c
index 1d5352194ba..b89b8f28acc 100644
--- a/src/vnet/dhcp/client.c
+++ b/src/vnet/dhcp/client.c
@@ -830,13 +830,14 @@ format_dhcp_client (u8 * s, va_list * va)
if (c->leased_address.as_u32)
{
- s = format (s, "addr %U/%d gw %U\n",
+ s = format (s, "addr %U/%d gw %U",
format_ip4_address, &c->leased_address,
c->subnet_mask_width, format_ip4_address,
&c->router_address);
vec_foreach (addr, c->domain_server_address)
- s = format (s, "dns %U ", format_ip4_address, addr);
+ s = format (s, " dns %U", format_ip4_address, addr);
+ vec_add1 (s, '\n');
}
else
{