* [PATCH] NET: ipconfig: Fix newline handling in log message.
@ 2013-03-19 18:19 Martin Fuzzey
2013-03-20 16:16 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Martin Fuzzey @ 2013-03-19 18:19 UTC (permalink / raw)
To: netdev, David S. Miller
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>
---
net/ipv4/ipconfig.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c
index 98cbc68..bf6c5cf 100644
--- a/net/ipv4/ipconfig.c
+++ b/net/ipv4/ipconfig.c
@@ -1522,7 +1522,8 @@ static int __init ip_auto_config(void)
}
for (i++; i < CONF_NAMESERVERS_MAX; i++)
if (ic_nameservers[i] != NONE)
- pr_cont(", nameserver%u=%pI4\n", i, &ic_nameservers[i]);
+ pr_cont(", nameserver%u=%pI4", i, &ic_nameservers[i]);
+ pr_cont("\n");
#endif /* !SILENT */
return 0;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] NET: ipconfig: Fix newline handling in log message.
2013-03-19 18:19 [PATCH] NET: ipconfig: Fix newline handling in log message Martin Fuzzey
@ 2013-03-20 16:16 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-03-20 16:16 UTC (permalink / raw)
To: mfuzzey; +Cc: netdev
From: Martin Fuzzey <mfuzzey@parkeon.com>
Date: Tue, 19 Mar 2013 19:19:29 +0100
> 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>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-20 16:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-19 18:19 [PATCH] NET: ipconfig: Fix newline handling in log message Martin Fuzzey
2013-03-20 16:16 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.