hotspot/src/share/vm/utilities/debug.cpp
changeset 37113 5a33bf5089ac
parent 36384 b0b41336a9a8
child 37466 287c4ebd11b0
--- a/hotspot/src/share/vm/utilities/debug.cpp	Tue Mar 15 20:37:35 2016 +0000
+++ b/hotspot/src/share/vm/utilities/debug.cpp	Sat Mar 12 08:35:05 2016 +0100
@@ -224,6 +224,11 @@
   va_end(detail_args);
 }
 
+void report_vm_status_error(const char* file, int line, const char* error_msg,
+                            int status, const char* detail) {
+  report_vm_error(file, line, error_msg, "error %s(%d), %s", os::errno_name(status), status, detail);
+}
+
 void report_fatal(const char* file, int line, const char* detail_fmt, ...)
 {
   if (Debugging || error_is_suppressed(file, line)) return;