diff options
| author | Madhav Suresh <madhav.suresh@delphix.com> | 2012-07-31 06:38:31 -0700 |
|---|---|---|
| committer | Madhav Suresh <madhav.suresh@delphix.com> | 2012-07-31 06:38:31 -0700 |
| commit | 9fa718d2f477620f14e3f2948dd03e3470add804 (patch) | |
| tree | 71b28b6487a785e3480b3409ec9239a018e4ef1a /usr/src/lib/libc/port/threads/assfail.c | |
| parent | 536df542129698c6bedf6f515d0d547d89268c55 (diff) | |
| download | illumos-joyent-9fa718d2f477620f14e3f2948dd03e3470add804.tar.gz | |
3006 VERIFY[S,U,P] and ASSERT[S,U,P] frequently check if first argument is zero
Reviewed by: Matt Ahrens <matthew.ahrens@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Approved by: Garrett D'Amore <garrett@damore.org>
Diffstat (limited to 'usr/src/lib/libc/port/threads/assfail.c')
| -rw-r--r-- | usr/src/lib/libc/port/threads/assfail.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/lib/libc/port/threads/assfail.c b/usr/src/lib/libc/port/threads/assfail.c index 7cf0ea98e6..7a98884f4b 100644 --- a/usr/src/lib/libc/port/threads/assfail.c +++ b/usr/src/lib/libc/port/threads/assfail.c @@ -452,11 +452,11 @@ assfail3(const char *assertion, uintmax_t lv, const char *op, uintmax_t rv, { char buf[1000]; (void) strcpy(buf, assertion); - (void) strcat(buf, " (0x"); + (void) strcat(buf, " ("); ultos((uint64_t)lv, 16, buf + strlen(buf)); (void) strcat(buf, " "); (void) strcat(buf, op); - (void) strcat(buf, " 0x"); + (void) strcat(buf, " "); ultos((uint64_t)rv, 16, buf + strlen(buf)); (void) strcat(buf, ")"); __assfail(buf, filename, line_num); |
