From 1e8e49cc2ce87289d7baa3652b115f67646ba843 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Mon, 9 Dec 2019 11:22:11 -0800 Subject: [PATCH] statusToString: parenthesize strerror For clarity, when printint w/o delination, noticed in b/145776393. Test: view output of statusToString from a dumpsys change Change-Id: I5ea9f052c223f167dd58923e2470c852907c97b8 --- libutils/Errors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libutils/Errors.cpp b/libutils/Errors.cpp index 2dfd138f8..74f3befac 100644 --- a/libutils/Errors.cpp +++ b/libutils/Errors.cpp @@ -45,7 +45,7 @@ std::string statusToString(status_t s) { #undef STATUS_CASE } - return std::to_string(s) + ' ' + strerror(-s); + return std::to_string(s) + " (" + strerror(-s) + ")"; } } // namespace android