public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/6] kernel: use KSYM_NAME_LEN
@ 2008-01-23 17:38 Cyrill Gorcunov
  0 siblings, 0 replies; only message in thread
From: Cyrill Gorcunov @ 2008-01-23 17:38 UTC (permalink / raw)
  To: LKML
  Cc: Ingo Molnar, David Miller, Andrew Morton, Paul Mackerras,
	Peter Zijlstra, Thomas Gleixner

Use KSYM_NAME_LEN instead of numeric value

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

Index: linux-2.6.git/kernel/kprobes.c
===================================================================
--- linux-2.6.git.orig/kernel/kprobes.c	2008-01-21 23:14:47.000000000 +0300
+++ linux-2.6.git/kernel/kprobes.c	2008-01-23 19:20:53.000000000 +0300
@@ -872,7 +872,7 @@ static int __kprobes show_kprobe_addr(st
 	const char *sym = NULL;
 	unsigned int i = *(loff_t *) v;
 	unsigned long offset = 0;
-	char *modname, namebuf[128];
+	char *modname, namebuf[KSYM_NAME_LEN];
 
 	head = &kprobe_table[i];
 	preempt_disable();
Index: linux-2.6.git/kernel/lockdep_proc.c
===================================================================
--- linux-2.6.git.orig/kernel/lockdep_proc.c	2008-01-21 19:35:32.000000000 +0300
+++ linux-2.6.git/kernel/lockdep_proc.c	2008-01-23 19:23:33.000000000 +0300
@@ -93,7 +93,7 @@ static unsigned long count_backward_deps
 
 static void print_name(struct seq_file *m, struct lock_class *class)
 {
-	char str[128];
+	char str[KSYM_NAME_LEN];
 	const char *name = class->name;
 
 	if (!name) {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-23 17:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-23 17:38 [PATCH 3/6] kernel: use KSYM_NAME_LEN Cyrill Gorcunov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox