Commit 283951f95b067877ca5ea77afaa212bb1e0507b5
Committed by
David S. Miller
1 parent
8ed781668d
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
ipconfig: Fix newline handling in log message.
When using ipconfig the logs currently look like: Single name server: [ 3.467270] IP-Config: Complete: [ 3.470613] device=eth0, hwaddr=ac:de:48:00:00:01, ipaddr=172.16.42.2, mask=255.255.255.0, gw=172.16.42.1 [ 3.480670] host=infigo-1, domain=, nis-domain=(none) [ 3.486166] bootserver=172.16.42.1, rootserver=172.16.42.1, rootpath= [ 3.492910] nameserver0=172.16.42.1[ 3.496853] ALSA device list: Three name servers: [ 3.496949] IP-Config: Complete: [ 3.500293] device=eth0, hwaddr=ac:de:48:00:00:01, ipaddr=172.16.42.2, mask=255.255.255.0, gw=172.16.42.1 [ 3.510367] host=infigo-1, domain=, nis-domain=(none) [ 3.515864] bootserver=172.16.42.1, rootserver=172.16.42.1, rootpath= [ 3.522635] nameserver0=172.16.42.1, nameserver1=172.16.42.100 [ 3.529149] , nameserver2=172.16.42.200 Fix newline handling for these cases Signed-off-by: Martin Fuzzey <mfuzzey@parkeon.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
net/ipv4/ipconfig.c
... | ... | @@ -1522,7 +1522,8 @@ |
1522 | 1522 | } |
1523 | 1523 | for (i++; i < CONF_NAMESERVERS_MAX; i++) |
1524 | 1524 | if (ic_nameservers[i] != NONE) |
1525 | - pr_cont(", nameserver%u=%pI4\n", i, &ic_nameservers[i]); | |
1525 | + pr_cont(", nameserver%u=%pI4", i, &ic_nameservers[i]); | |
1526 | + pr_cont("\n"); | |
1526 | 1527 | #endif /* !SILENT */ |
1527 | 1528 | |
1528 | 1529 | return 0; |