lkml.org 
[lkml]   [2008]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 2/6] x86: use KSYM_NAME_LEN
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);

\
 
 \ /
  Last update: 2008-01-23 18:43    [W:0.032 / U:0.388 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site