diff options
| author | Peter Wemm <peter@FreeBSD.org> | 2004-03-21 01:21:26 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 2004-03-21 01:21:26 +0000 |
| commit | c905e45dc0e7ad2da0748371ba8921ca48134a01 (patch) | |
| tree | ded17068c1bf0dea014f27d5b6b5ccda995841f0 /libexec/rtld-elf/debug.h | |
| parent | 3915888a547d21e68c6cac8e8055d4117cc8b635 (diff) | |
Notes
Diffstat (limited to 'libexec/rtld-elf/debug.h')
| -rw-r--r-- | libexec/rtld-elf/debug.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libexec/rtld-elf/debug.h b/libexec/rtld-elf/debug.h index 04314a9cb591..3708df62cbe7 100644 --- a/libexec/rtld-elf/debug.h +++ b/libexec/rtld-elf/debug.h @@ -50,10 +50,17 @@ extern int debug; #define dbg(format, args...) ((void) 0) #endif +#ifndef COMPAT_32BIT +#define _MYNAME "ld-elf.so.1" +#else +#define _MYNAME "ld-elf32.so.1" +#endif + #define assert(cond) ((cond) ? (void) 0 : \ - (msg("ld-elf.so.1: assert failed: " __FILE__ ":" \ + (msg(_MYNAME ": assert failed: " __FILE__ ":" \ __XSTRING(__LINE__) "\n"), abort())) #define msg(s) write(STDOUT_FILENO, s, strlen(s)) -#define trace() msg("ld-elf.so.1: " __XSTRING(__LINE__) "\n") +#define trace() msg(_MYNAME ": " __XSTRING(__LINE__) "\n") + #endif /* DEBUG_H */ |
