diff options
author | Elliott Hughes <enh@google.com> | 2015-03-20 17:05:56 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2015-03-20 17:05:56 -0700 |
commit | cd67f00e18de1c8d48ddb082ecb902fc42c2bacc (patch) | |
tree | cd431ef29d8fbbe895b1a7ade750dcb9123c507f /init/builtins.cpp | |
parent | bf684148e2f8182079b9483e7ead30d9b93cd020 (diff) |
Always use strerror to report errno.
Change-Id: Icd18e4bd7dc093c18967f45b99cd451359457b03
Diffstat (limited to 'init/builtins.cpp')
-rw-r--r-- | init/builtins.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/builtins.cpp b/init/builtins.cpp index e659cfae9..6daea3702 100644 --- a/init/builtins.cpp +++ b/init/builtins.cpp @@ -475,7 +475,7 @@ int do_mount_all(int nargs, char **args) int wp_ret = TEMP_FAILURE_RETRY(waitpid(pid, &status, 0)); if (wp_ret < 0) { /* Unexpected error code. We will continue anyway. */ - NOTICE("waitpid failed rc=%d, errno=%d\n", wp_ret, errno); + NOTICE("waitpid failed rc=%d: %s\n", wp_ret, strerror(errno)); } if (WIFEXITED(status)) { |