Skip to contentSkip to conversation

net: use KSYM_NAME_LEN

PATCH Applied Cyrill Gorcunov 1 participant 1 message Jan 23, 2008 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 4/6 net: use KSYM_NAME_LEN

Use KSYM_NAME_LEN instead of numeric value

---

net/core/dev.c +1 -1
Index: linux-2.6.git/net/core/dev.c
===================================================================
@@ -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);