diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2017-01-24 10:52:34 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2017-01-24 10:52:34 +0000 |
commit | 57735f4d8ed9841db2ee39e8c722a3ae68d83cfa (patch) | |
tree | ed21673260e3d2ff9ab14933082d49ba7251c67b /libexec | |
parent | ad4a012e384bd36a8466869827b9baec9d2dd701 (diff) |
To format r_addr, use %p and cast to 'void *'. From comparison with
other archs
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/ld.so/m88k/rtld_machine.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libexec/ld.so/m88k/rtld_machine.c b/libexec/ld.so/m88k/rtld_machine.c index d5a24da6b0b..5ebf997b576 100644 --- a/libexec/ld.so/m88k/rtld_machine.c +++ b/libexec/ld.so/m88k/rtld_machine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtld_machine.c,v 1.18 2017/01/24 07:48:37 guenther Exp $ */ +/* $OpenBSD: rtld_machine.c,v 1.19 2017/01/24 10:52:33 guenther Exp $ */ /* * Copyright (c) 2013 Miodrag Vallat. @@ -221,8 +221,8 @@ _dl_md_reloc(elf_object_t *object, int rel, int relasz) newval -= (Elf_Addr)r_addr; if ((newval >> 28) != 0 && (newval >> 28) != 0x0f) _dl_die("%s: out of range DISP26" - " relocation to '%s' at %x\n", - object->load_name, symn, r_addr); + " relocation to '%s' at %p\n", + object->load_name, symn, (void *)r_addr); *r_addr = (*r_addr & 0xfc000000) | (((int32_t)newval >> 2) & 0x03ffffff); _dl_cacheflush((unsigned long)r_addr, 4); @@ -236,8 +236,8 @@ _dl_md_reloc(elf_object_t *object, int rel, int relasz) *r_addr = newval; break; default: - _dl_die("%s: unsupported relocation '%s' %d at %x\n", - object->load_name, symn, type, r_addr); + _dl_die("%s: unsupported relocation '%s' %d at %p\n", + object->load_name, symn, type, (void *)r_addr); } } |