summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Tegtmeier <kevint@lanl.gov>2008-01-10 11:07:53 -0700
committerSimon Horman <horms@verge.net.au>2008-01-18 16:57:43 +0900
commit487794c3a650dac933e8aeaaf618b466cc306519 (patch)
treec9af57c9255aed396294f39e5cf79bb8442ec7ab
parent956e3295b400a5d1ea3535602ed25d7866412110 (diff)
Log unknown reloc name instead of its number
I included a one-line patch to kexec-tools-testing, at Bernhard Walle's request. This prints the relocation type as a string. I noticed that other architectures do not use reloc_name, but instead just print the r_type. I find the reloc_name useful. Cc: Kevin Tegtmeier <kevint@lanl.gov> Signed-off-By: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/arch/x86_64/kexec-elf-rel-x86_64.c2
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 b484323..474f31d 100644
--- a/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
+++ b/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
@@ -83,7 +83,7 @@ void machine_apply_elf_rel(struct mem_ehdr *ehdr, unsigned long r_type,
*(uint32_t *)location = value - address;
break;
default:
- die("Unhandled rela relocation: %lu\n", reloc_name(r_type));
+ die("Unhandled rela relocation: %s\n", reloc_name(r_type));
break;
}
return;