1 #include "pdx/status.h" 2 3 #include <pdx/rpc/serialization.h> 4 #include <string.h> 5 6 namespace android { 7 namespace pdx { 8 ErrorToString(int error_code)9std::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 16