diff options
author | Josef 'Jeff' Sipek <josef.sipek@nexenta.com> | 2015-08-05 20:31:02 -0400 |
---|---|---|
committer | Dan McDonald <danmcd@omniti.com> | 2015-08-06 00:57:37 -0400 |
commit | d0dbb2dadfe3fd60aa7440d2deed1161f99e1ae9 (patch) | |
tree | 095aabc9758965a8ea97750aed04b28909acd0ad /usr/src | |
parent | 8f5190a540d64d2debee6664bbc740e4c38f5b7f (diff) | |
download | illumos-joyent-d0dbb2dadfe3fd60aa7440d2deed1161f99e1ae9.tar.gz |
6092 rtld should always provide assfail/assfail3
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/cmd/sgs/rtld/common/util.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr/src/cmd/sgs/rtld/common/util.c b/usr/src/cmd/sgs/rtld/common/util.c index a702b20e78..046c8297a0 100644 --- a/usr/src/cmd/sgs/rtld/common/util.c +++ b/usr/src/cmd/sgs/rtld/common/util.c @@ -3072,7 +3072,6 @@ eprintf(Lm_list *lml, Error error, const char *format, ...) va_end(args); } -#if DEBUG /* * Provide assfail() for ASSERT() statements. See <sys/debug.h> for further * details. @@ -3089,11 +3088,11 @@ void assfail3(const char *msg, uintmax_t a, const char *op, uintmax_t b, const char *f, int l) { - (void) printf("assertion failed: %s (%llu %s %llu), " - "file: %s, line: %d\n", msg, a, op, b, f, l); + (void) printf("assertion failed: %s (0x%llx %s 0x%llx), " + "file: %s, line: %d\n", msg, (unsigned long long)a, op, + (unsigned long long)b, f, l); (void) _lwp_kill(_lwp_self(), SIGABRT); } -#endif /* * Exit. If we arrive here with a non zero status it's because of a fatal |