commit | cd67f00e18de1c8d48ddb082ecb902fc42c2bacc | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Mar 20 17:05:56 2015 -0700 |
committer | Elliott Hughes <enh@google.com> | Fri Mar 20 17:05:56 2015 -0700 |
tree | cd431ef29d8fbbe895b1a7ade750dcb9123c507f | |
parent | bf684148e2f8182079b9483e7ead30d9b93cd020 [diff] [blame] |
Always use strerror to report errno. Change-Id: Icd18e4bd7dc093c18967f45b99cd451359457b03
diff --git a/init/devices.cpp b/init/devices.cpp index aa86e5f..9bce39a 100644 --- a/init/devices.cpp +++ b/init/devices.cpp
@@ -871,7 +871,7 @@ booting = is_booting(); goto try_loading_again; } - INFO("firmware: could not open '%s' %d\n", uevent->firmware, errno); + INFO("firmware: could not open '%s': %s\n", uevent->firmware, strerror(errno)); write(loading_fd, "-1", 2); goto data_close_out; }