aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_catches.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2013-02-19 20:09:43 +0100
committerSverker Eriksson <[email protected]>2013-02-20 15:29:09 +0100
commite41674160b3059a1bc507b4718c173c9879e506a (patch)
treef85283ca8f48fe1b2253a065e44d804a6a017e38 /erts/emulator/beam/beam_catches.c
parent248a9d7095cc686c1c0f89ed4e69e54e42e0c013 (diff)
downloadotp-e41674160b3059a1bc507b4718c173c9879e506a.tar.gz
otp-e41674160b3059a1bc507b4718c173c9879e506a.tar.bz2
otp-e41674160b3059a1bc507b4718c173c9879e506a.zip
erts: Correct some printf type formatting
Using %p, %bpx and %bex for pointers, UWords and Uint.
Diffstat (limited to 'erts/emulator/beam/beam_catches.c')
-rw-r--r--erts/emulator/beam/beam_catches.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/erts/emulator/beam/beam_catches.c b/erts/emulator/beam/beam_catches.c
index 7c92408eea..d374d0469e 100644
--- a/erts/emulator/beam/beam_catches.c
+++ b/erts/emulator/beam/beam_catches.c
@@ -160,10 +160,9 @@ void beam_catches_delmod(unsigned head, BeamInstr *code, unsigned code_bytes,
}
if( (char*)p->beam_catches[i].cp - (char*)code >= code_bytes ) {
erl_exit(1,
- "beam_catches_delmod: item %#x has cp %#lx which is not "
- "in module's range [%#lx,%#lx[\r\n",
- i, (long)p->beam_catches[i].cp,
- (long)code, (long)((char*)code + code_bytes));
+ "beam_catches_delmod: item %#x has cp %p which is not "
+ "in module's range [%p,%p[\r\n",
+ i, p->beam_catches[i].cp, code, ((char*)code + code_bytes));
}
p->beam_catches[i].cp = 0;
cdr = p->beam_catches[i].cdr;