Print this page
6092 rtld should always provide assfail/assfail3
Reviewed by: Andy Stormont <astormont@racktopsystems.com>

@@ -3070,11 +3070,10 @@
         va_start(args, format);
         veprintf(lml, error, format, args);
         va_end(args);
 }
 
-#if     DEBUG
 /*
  * Provide assfail() for ASSERT() statements.  See <sys/debug.h> for further
  * details.
  */
 int

@@ -3087,15 +3086,15 @@
 
 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
  * error condition (most commonly a relocation error).  If the application has
  * already had control, then the actual fatal error message will have been