Use %m with printf() rather than strerrordesc_np().
The latter is equivalent to strerror() on Android anyway.
Change-Id: I16b1720e4ac5875e3dc3bfa83b2ff3ac1226f2b0
diff --git a/tests/malloc_stress_test.cpp b/tests/malloc_stress_test.cpp
index 00f5919..210eb3a 100644
--- a/tests/malloc_stress_test.cpp
+++ b/tests/malloc_stress_test.cpp
@@ -57,7 +57,7 @@
}
// EAGAIN means there is nothing left to read when ANDROID_LOG_NONBLOCK is set.
if (retval != -EAGAIN) {
- printf("Failed to read log entry: %s\n", strerrordesc_np(retval));
+ printf("Failed to read log entry: %m");
}
break;
}