[PATCH 2/6] x86: use KSYM_NAME_LEN

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: LKML <linux-kernel@...>
Cc: Ingo Molnar <mingo@...>, David Miller <davem@...>, Andrew Morton <akpm@...>, Paul Mackerras <paulus@...>, Peter Zijlstra <peterz@...>, Thomas Gleixner <tglx@...>
Date: Wednesday, January 23, 2008 - 1:38 pm

Use KSYM_NAME_LEN instead of numeric value

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---

Index: linux-2.6.git/arch/x86/kernel/traps_64.c
===================================================================
--- linux-2.6.git.orig/arch/x86/kernel/traps_64.c	2008-01-23 19:18:27.000000000 +0300
+++ linux-2.6.git/arch/x86/kernel/traps_64.c	2008-01-23 19:19:05.000000000 +0300
@@ -105,7 +105,7 @@ void printk_address(unsigned long addres
 	const char *symname;
 	char *modname;
 	char *delim = ":";
-	char namebuf[128];
+	char namebuf[KSYM_NAME_LEN];
 
 	symname = kallsyms_lookup(address, &symsize, &offset,
 					&modname, namebuf);
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/6] x86: use KSYM_NAME_LEN, Cyrill Gorcunov, (Wed Jan 23, 1:38 pm)
Re: [PATCH 2/6] x86: use KSYM_NAME_LEN, Ingo Molnar, (Thu Jan 24, 12:08 pm)