diff options
author | 1999-05-26 00:06:49 +0000 | |
---|---|---|
committer | 1999-05-26 00:06:49 +0000 | |
commit | 56f9dea7619aaad9e3196269c1ad612ea1564b5e (patch) | |
tree | bdb2f51c268709d87fcf3a1ef29bdb5785deb1fb | |
parent | explain the third argument more thoroughly; some cmds take it as an int, (diff) | |
download | wireguard-openbsd-56f9dea7619aaad9e3196269c1ad612ea1564b5e.tar.xz wireguard-openbsd-56f9dea7619aaad9e3196269c1ad612ea1564b5e.zip |
show a bit more information when checks fail
-rw-r--r-- | lib/libc_r/TEST/test.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc_r/TEST/test.h b/lib/libc_r/TEST/test.h index 990526fb98c..5fc658a867a 100644 --- a/lib/libc_r/TEST/test.h +++ b/lib/libc_r/TEST/test.h @@ -93,7 +93,7 @@ __panic(type, errstr, filenm, lineno, fmt) _x = (int)(x); \ if (!(_x rhs)) \ __panic("check failed", efn, __FILE__, __LINE__, \ - "failed check %s %s", #x, #rhs); \ + "failed check %s (=%d) %s ", #x, _x, #rhs); \ } while(0) #define CHECKr(x) _CHECK(x, == 0, strerror(_x)) |