diff options
author | Simon Marlow <marlowsd@gmail.com> | 2016-07-04 10:56:04 +0100 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2016-07-04 13:17:23 +0100 |
commit | 01f449f4ffd2c4f23bfe5698b9f1b98a86276900 (patch) | |
tree | 6f9724cfd0e4fa14c5ddfda5ee9ff9a1245d0fb5 /rts/Linker.c | |
parent | 0ab63cf48580abbfe15ece934aec093203f29ed2 (diff) | |
download | haskell-01f449f4ffd2c4f23bfe5698b9f1b98a86276900.tar.gz |
Fix 32-bit build failures
Diffstat (limited to 'rts/Linker.c')
-rw-r--r-- | rts/Linker.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/rts/Linker.c b/rts/Linker.c index 894a31d80d..40ea8def96 100644 --- a/rts/Linker.c +++ b/rts/Linker.c @@ -1477,10 +1477,13 @@ void ghci_find(SymbolAddr *addr) Section *section = &oc->sections[i]; if (addr > section->start && (StgWord)addr < (StgWord)section->start+section->size) { - debugBelch("%p is in %" PATH_FMT, addr, - oc->archiveMemberName ? - oc->archiveMemberName : oc->fileName); - debugBelch(", section %d, offset %lx\n", i, + debugBelch("%p is in ", addr); + if (oc->archiveMemberName) { + debugBelch("%s", oc->archiveMemberName); + } else { + debugBelch("%" PATH_FMT, oc->fileName); + } + debugBelch(", section %d, offset %" FMT_Word "\n", i, (StgWord)addr - (StgWord)section->start); } } |