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
This commit is contained in:
Steven Moreland 2019-12-09 11:22:11 -08:00
parent 3498578c4c
commit 1e8e49cc2c

View file

@ -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