hotspot/src/os/posix/vm/os_posix.cpp
changeset 37113 5a33bf5089ac
parent 36585 00416e804a66
child 37465 1d5551f466ee
--- a/hotspot/src/os/posix/vm/os_posix.cpp	Tue Mar 15 20:37:35 2016 +0000
+++ b/hotspot/src/os/posix/vm/os_posix.cpp	Sat Mar 12 08:35:05 2016 +0100
@@ -1144,7 +1144,8 @@
 #define check_with_errno(check_type, cond, msg)                             \
   do {                                                                      \
     int err = errno;                                                        \
-    check_type(cond, "%s; error='%s' (errno=%d)", msg, strerror(err), err); \
+    check_type(cond, "%s; error='%s' (errno=%s)", msg, os::strerror(err),   \
+               os::errno_name(err));                                        \
 } while (false)
 
 #define assert_with_errno(cond, msg)    check_with_errno(assert, cond, msg)