mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
[GFS2] Uncomment sprintf_symbol calling code
Now that the patch from -mm has gone upstream, we can uncomment the code in GFS2 which uses sprintf_symbol. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com> Cc: Robert Peterson <rpeterso@redhat.com>
This commit is contained in:
parent
617e82e10c
commit
37fde8ca6c
1 changed files with 0 additions and 12 deletions
|
@ -1763,22 +1763,10 @@ void gfs2_gl_hash_clear(struct gfs2_sbd *sdp, int wait)
|
||||||
static void gfs2_print_symbol(struct glock_iter *gi, const char *fmt,
|
static void gfs2_print_symbol(struct glock_iter *gi, const char *fmt,
|
||||||
unsigned long address)
|
unsigned long address)
|
||||||
{
|
{
|
||||||
/* when sprint_symbol becomes available in the new kernel, replace this */
|
|
||||||
/* function with:
|
|
||||||
char buffer[KSYM_SYMBOL_LEN];
|
char buffer[KSYM_SYMBOL_LEN];
|
||||||
|
|
||||||
sprint_symbol(buffer, address);
|
sprint_symbol(buffer, address);
|
||||||
print_dbg(gi, fmt, buffer);
|
print_dbg(gi, fmt, buffer);
|
||||||
*/
|
|
||||||
char buffer[256];
|
|
||||||
|
|
||||||
if (gi) {
|
|
||||||
memset(buffer, 0, sizeof(buffer));
|
|
||||||
sprintf(buffer, "0x%08lx", address);
|
|
||||||
print_dbg(gi, fmt, buffer);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
print_symbol(fmt, address);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue