lkml.org 
[lkml]   [2006]   [Jan]   [16]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateMon, 16 Jan 2006 21:18:34 +0900
Subject[PATCH 3/3] omit symbol size field in print_symbol()
From(Akinobu Mita)
I can't find useful usage for the symbol size in print_symbol().
And symbolsize seems to be fixed when vmlinux or modules are compiled.
So we can calculate it from vmlinux or modules.

Signed-off-by: Akinobu Mita <mita@miraclelinux.com>
----
 kallsyms.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
--- 2.6-git/kernel/kallsyms.c.orig	2006-01-11 14:50:37.000000000 +0900
+++ 2.6-git/kernel/kallsyms.c	2006-01-11 14:52:23.000000000 +0900
@@ -246,10 +246,9 @@ int __print_symbol(const char *fmt, unsi
 		sprintf(buffer, "0x%lx", address);
 	else {
 		if (modname)
-			sprintf(buffer, "%s+%#lx/%#lx [%s]", name, offset,
-				size, modname);
+			sprintf(buffer, "%s+%#lx [%s]", name, offset, modname);
 		else
-			sprintf(buffer, "%s+%#lx/%#lx", name, offset, size);
+			sprintf(buffer, "%s+%#lx", name, offset);
 	}
 	return printk(fmt, buffer);
 }
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-01-16 13:21    [from the cache]
©2003-2008