diff options
author | Vivek Goyal <vgoyal@in.ibm.com> | 2007-03-07 13:50:22 +0530 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2007-03-07 17:56:54 +0900 |
commit | 924b985aaba1a3cc17f419e93b3a31568070df7a (patch) | |
tree | 14c3977ed1ee6a458a85d7c78a8259bb694d216d | |
parent | bcd72df212636eee645276a2409b0eef8c250dee (diff) |
kexec-tools: x86_64 Print correct info in reloc_name function
o A minor fix. In debug printf, reloc_name was printing wrong relocation
info
Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | kexec/arch/x86_64/kexec-elf-rel-x86_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/arch/x86_64/kexec-elf-rel-x86_64.c b/kexec/arch/x86_64/kexec-elf-rel-x86_64.c index 16b32a2..b484323 100644 --- a/kexec/arch/x86_64/kexec-elf-rel-x86_64.c +++ b/kexec/arch/x86_64/kexec-elf-rel-x86_64.c @@ -47,7 +47,7 @@ static const char *reloc_name(unsigned long r_type) }; static char buf[100]; const char *name; - if (r_type < (sizeof(reloc_name)/sizeof(r_name[0]))){ + if (r_type < (sizeof(r_name)/sizeof(r_name[0]))){ name = r_name[r_type]; } else { |