[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20080123173901.GD12877@cvg>
Date: Wed, 23 Jan 2008 20:39:01 +0300
From: Cyrill Gorcunov <gorcunov@...il.com>
To: LKML <linux-kernel@...r.kernel.org>
Cc: Ingo Molnar <mingo@...e.hu>, David Miller <davem@...emloft.net>,
Andrew Morton <akpm@...ux-foundation.org>,
Paul Mackerras <paulus@...ba.org>,
Peter Zijlstra <peterz@...radead.org>,
Thomas Gleixner <tglx@...utronix.de>
Subject: [PATCH 4/6] net: use KSYM_NAME_LEN
Use KSYM_NAME_LEN instead of numeric value
Signed-off-by: Cyrill Gorcunov <gorcunov@...il.com>
---
Index: linux-2.6.git/net/core/dev.c
===================================================================
--- linux-2.6.git.orig/net/core/dev.c 2008-01-21 19:35:33.000000000 +0300
+++ linux-2.6.git/net/core/dev.c 2008-01-23 19:22:17.000000000 +0300
@@ -2599,7 +2599,7 @@ static void ptype_seq_decode(struct seq_
unsigned long offset = 0, symsize;
const char *symname;
char *modname;
- char namebuf[128];
+ char namebuf[KSYM_NAME_LEN];
symname = kallsyms_lookup((unsigned long)sym, &symsize, &offset,
&modname, namebuf);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists