From cd67f00e18de1c8d48ddb082ecb902fc42c2bacc Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 20 Mar 2015 17:05:56 -0700 Subject: Always use strerror to report errno. Change-Id: Icd18e4bd7dc093c18967f45b99cd451359457b03 --- init/devices.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init/devices.cpp') 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; } -- cgit v1.2.3