summaryrefslogtreecommitdiffstats
path: root/init/devices.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-03-20 17:05:56 -0700
committerElliott Hughes <enh@google.com>2015-03-20 17:05:56 -0700
commitcd67f00e18de1c8d48ddb082ecb902fc42c2bacc (patch)
treecd431ef29d8fbbe895b1a7ade750dcb9123c507f /init/devices.cpp
parentbf684148e2f8182079b9483e7ead30d9b93cd020 (diff)
downloadcore-cd67f00e18de1c8d48ddb082ecb902fc42c2bacc.tar.gz
core-cd67f00e18de1c8d48ddb082ecb902fc42c2bacc.tar.bz2
core-cd67f00e18de1c8d48ddb082ecb902fc42c2bacc.zip
Always use strerror to report errno.
Change-Id: Icd18e4bd7dc093c18967f45b99cd451359457b03
Diffstat (limited to 'init/devices.cpp')
-rw-r--r--init/devices.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/devices.cpp b/init/devices.cpp
index aa86e5fed..9bce39abc 100644
--- a/init/devices.cpp
+++ b/init/devices.cpp
@@ -871,7 +871,7 @@ try_loading_again:
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;
}