netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Use TASK_COMM_LEN macro.
@ 2005-02-10  4:59 YOSHIFUJI Hideaki / 吉藤英明
  2005-02-11  3:51 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: YOSHIFUJI Hideaki / 吉藤英明 @ 2005-02-10  4:59 UTC (permalink / raw)
  To: davem; +Cc: netdev, yoshfuji

Use TASK_COMM_LEN macro instead of magic number 16.

Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>

===== net/core/sock.c 1.57 vs edited =====
--- 1.57/net/core/sock.c	2005-01-11 05:23:56 +09:00
+++ edited/net/core/sock.c	2005-02-10 13:53:08 +09:00
@@ -166,7 +166,7 @@
 static void sock_warn_obsolete_bsdism(const char *name)
 {
 	static int warned;
-	static char warncomm[16];
+	static char warncomm[TASK_COMM_LEN];
 	if (strcmp(warncomm, current->comm) && warned < 5) { 
 		strcpy(warncomm,  current->comm); 
 		printk(KERN_WARNING "process `%s' is using obsolete "

-- 
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@linux-ipv6.org>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA

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

* Re: [PATCH] Use TASK_COMM_LEN macro.
  2005-02-10  4:59 [PATCH] Use TASK_COMM_LEN macro YOSHIFUJI Hideaki / 吉藤英明
@ 2005-02-11  3:51 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2005-02-11  3:51 UTC (permalink / raw)
  To: yoshfuji; +Cc: netdev

On Thu, 10 Feb 2005 13:59:16 +0900 (JST)
YOSHIFUJI Hideaki / ^[$B5HF#1QL@^[(B <yoshfuji@linux-ipv6.org> wrote:

> Use TASK_COMM_LEN macro instead of magic number 16.
> 
> Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>

Applied, thanks a lot.

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

end of thread, other threads:[~2005-02-11  3:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-10  4:59 [PATCH] Use TASK_COMM_LEN macro YOSHIFUJI Hideaki / 吉藤英明
2005-02-11  3:51 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).