| Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 1 | #include "pdx/status.h" |
| 2 | |||||
| 3 | #include <pdx/rpc/serialization.h> | ||||
| 4 | #include <string.h> | ||||
| 5 | |||||
| 6 | namespace android { | ||||
| 7 | namespace pdx { | ||||
| 8 | |||||
| 9 | std::string ErrorStatus::ErrorToString(int error_code) { | ||||
| 10 | char message[1024] = {}; | ||||
| 11 | return strerror_r(error_code, message, sizeof(message)); | ||||
| 12 | } | ||||
| 13 | |||||
| 14 | } // namespace pdx | ||||
| 15 | } // namespace android | ||||