From 370e5ea48cb0eb90b6737b745ef9630129af2864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Tue, 28 Mar 2006 18:28:07 +0000 Subject: [PATCH] Don't use dbg if it isn't defined (such as when this file is used by code outside of rtld-elf) --- libexec/rtld-elf/i386/rtld_machdep.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libexec/rtld-elf/i386/rtld_machdep.h b/libexec/rtld-elf/i386/rtld_machdep.h index e104f868b5a..cbb13eb8595 100644 --- a/libexec/rtld-elf/i386/rtld_machdep.h +++ b/libexec/rtld-elf/i386/rtld_machdep.h @@ -46,8 +46,10 @@ reloc_jmpslot(Elf_Addr *where, Elf_Addr target, const struct Struct_Obj_Entry *obj, const struct Struct_Obj_Entry *refobj, const Elf_Rel *rel) { +#ifdef dbg dbg("reloc_jmpslot: *%p = %p", (void *)(where), (void *)(target)); +#endif (*(Elf_Addr *)(where) = (Elf_Addr)(target)); return target; }