All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]net:8021q:vlan.c Fix pr_info to read on line in the syslog.
@ 2011-05-23 16:04 Justin P. Mattock
  2011-05-23 16:23 ` Joe Perches
  0 siblings, 1 reply; 5+ messages in thread
From: Justin P. Mattock @ 2011-05-23 16:04 UTC (permalink / raw)
  To: netdev; +Cc: davem, linux-kernel, Justin P. Mattock

The patch below changes the pr_info so that it reads on one line in the syslog
rather than two.

before:

[   30.438203] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
[   30.441542] All bugs added by David S. Miller <davem@redhat.com>


after:
[   29.356282] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com> All bugs added by: David S. Miller <davem@redhat.com>

Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>

---
 net/8021q/vlan.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c
index b2274d1..02f4d8b 100644
--- a/net/8021q/vlan.c
+++ b/net/8021q/vlan.c
@@ -673,8 +673,8 @@ static int __init vlan_proto_init(void)
 {
 	int err;
 
-	pr_info("%s v%s %s\n", vlan_fullname, vlan_version, vlan_copyright);
-	pr_info("All bugs added by %s\n", vlan_buggyright);
+	pr_info("%s v%s %s All bugs added by: %s\n", vlan_fullname, vlan_version, 
+		vlan_copyright, vlan_buggyright);
 
 	err = register_pernet_subsys(&vlan_net_ops);
 	if (err < 0)
-- 
1.7.5.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH]net:8021q:vlan.c Fix pr_info to read on line in the syslog.
  2011-05-23 16:04 [PATCH]net:8021q:vlan.c Fix pr_info to read on line in the syslog Justin P. Mattock
@ 2011-05-23 16:23 ` Joe Perches
  2011-05-23 19:56   ` David Miller
  2011-05-24  4:33   ` Justin P. Mattock
  0 siblings, 2 replies; 5+ messages in thread
From: Joe Perches @ 2011-05-23 16:23 UTC (permalink / raw)
  To: Justin P. Mattock; +Cc: netdev, davem, linux-kernel

On Mon, 2011-05-23 at 09:04 -0700, Justin P. Mattock wrote:
> The patch below changes the pr_info so that it reads on one line in the syslog
> rather than two.
> 
> before:
> 
> [   30.438203] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
> [   30.441542] All bugs added by David S. Miller <davem@redhat.com>
> 
> 
> after:
> [   29.356282] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com> All bugs added by: David S. Miller <davem@redhat.com>
> 
> Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>
> 
> ---
>  net/8021q/vlan.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c
> index b2274d1..02f4d8b 100644
> --- a/net/8021q/vlan.c
> +++ b/net/8021q/vlan.c
> @@ -673,8 +673,8 @@ static int __init vlan_proto_init(void)
>  {
>  	int err;
>  
> -	pr_info("%s v%s %s\n", vlan_fullname, vlan_version, vlan_copyright);
> -	pr_info("All bugs added by %s\n", vlan_buggyright);
> +	pr_info("%s v%s %s All bugs added by: %s\n", vlan_fullname, vlan_version, 
> +		vlan_copyright, vlan_buggyright);

Might as well avoid the format string then too.

	pr_info(vlan_fullname " v" vlan_version " " vlan_copyright
		" All bugs added by: " vlan_buggyright "\n");
 
or just kill the otherwise unused vlan_<foo> variables

	pr_info("802.1Q VLAN Support v" vlan_version
		" Ben Greear <greearb@candelatech.com>"
		" All bugs added by: David S. Miller <davem@redhat.com>\n");

though I think that emitting names on startup isn't necessary and
this is enough:

	pr_info("802.1Q VLAN Support v" vlan_version "\n");



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH]net:8021q:vlan.c Fix pr_info to read on line in the syslog.
  2011-05-23 16:23 ` Joe Perches
@ 2011-05-23 19:56   ` David Miller
  2011-05-23 20:16     ` Ben Greear
  2011-05-24  4:33   ` Justin P. Mattock
  1 sibling, 1 reply; 5+ messages in thread
From: David Miller @ 2011-05-23 19:56 UTC (permalink / raw)
  To: joe; +Cc: justinmattock, netdev, linux-kernel

From: Joe Perches <joe@perches.com>
Date: Mon, 23 May 2011 09:23:01 -0700

> though I think that emitting names on startup isn't necessary and
> this is enough:

Agreed, it's not like Ben and I are Napoleon or anything...

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH]net:8021q:vlan.c Fix pr_info to read on line in the syslog.
  2011-05-23 19:56   ` David Miller
@ 2011-05-23 20:16     ` Ben Greear
  0 siblings, 0 replies; 5+ messages in thread
From: Ben Greear @ 2011-05-23 20:16 UTC (permalink / raw)
  To: David Miller; +Cc: joe, justinmattock, netdev, linux-kernel

On 05/23/2011 12:56 PM, David Miller wrote:
> From: Joe Perches<joe@perches.com>
> Date: Mon, 23 May 2011 09:23:01 -0700
>
>> though I think that emitting names on startup isn't necessary and
>> this is enough:
>
> Agreed, it's not like Ben and I are Napoleon or anything...

I'm fine with that as well.  It was good for the ego, but I
won't mind not getting emails from folks that accidentally
look at their DSL router logs and assume I wrote (and can debug)
the entire AT&T network :)

Thanks,
Ben

> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH]net:8021q:vlan.c Fix pr_info to read on line in the syslog.
  2011-05-23 16:23 ` Joe Perches
  2011-05-23 19:56   ` David Miller
@ 2011-05-24  4:33   ` Justin P. Mattock
  1 sibling, 0 replies; 5+ messages in thread
From: Justin P. Mattock @ 2011-05-24  4:33 UTC (permalink / raw)
  To: Joe Perches; +Cc: netdev, davem, linux-kernel

On 05/23/2011 09:23 AM, Joe Perches wrote:
> On Mon, 2011-05-23 at 09:04 -0700, Justin P. Mattock wrote:
>> The patch below changes the pr_info so that it reads on one line in the syslog
>> rather than two.
>>
>> before:
>>
>> [   30.438203] 802.1Q VLAN Support v1.8 Ben Greear<greearb@candelatech.com>
>> [   30.441542] All bugs added by David S. Miller<davem@redhat.com>
>>
>>
>> after:
>> [   29.356282] 802.1Q VLAN Support v1.8 Ben Greear<greearb@candelatech.com>  All bugs added by: David S. Miller<davem@redhat.com>
>>
>> Signed-off-by: Justin P. Mattock<justinmattock@gmail.com>
>>
>> ---
>>   net/8021q/vlan.c |    4 ++--
>>   1 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c
>> index b2274d1..02f4d8b 100644
>> --- a/net/8021q/vlan.c
>> +++ b/net/8021q/vlan.c
>> @@ -673,8 +673,8 @@ static int __init vlan_proto_init(void)
>>   {
>>   	int err;
>>
>> -	pr_info("%s v%s %s\n", vlan_fullname, vlan_version, vlan_copyright);
>> -	pr_info("All bugs added by %s\n", vlan_buggyright);
>> +	pr_info("%s v%s %s All bugs added by: %s\n", vlan_fullname, vlan_version,
>> +		vlan_copyright, vlan_buggyright);
>
> Might as well avoid the format string then too.
>
> 	pr_info(vlan_fullname " v" vlan_version " " vlan_copyright
> 		" All bugs added by: " vlan_buggyright "\n");
>
> or just kill the otherwise unused vlan_<foo>  variables
>
> 	pr_info("802.1Q VLAN Support v" vlan_version
> 		" Ben Greear<greearb@candelatech.com>"
> 		" All bugs added by: David S. Miller<davem@redhat.com>\n");
>
> though I think that emitting names on startup isn't necessary and
> this is enough:
>
> 	pr_info("802.1Q VLAN Support v" vlan_version "\n");
>
>
>

alright, I will resend this with what you have then.

Justin P. Mattock

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-05-24  4:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-23 16:04 [PATCH]net:8021q:vlan.c Fix pr_info to read on line in the syslog Justin P. Mattock
2011-05-23 16:23 ` Joe Perches
2011-05-23 19:56   ` David Miller
2011-05-23 20:16     ` Ben Greear
2011-05-24  4:33   ` Justin P. Mattock

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.