linker: use %m in error messages.
Change-Id: Ib799abdd2628fa1c54a2e479c6455b44d40deae1
diff --git a/linker/linker_config.cpp b/linker/linker_config.cpp
index 70430b8..613c781 100644
--- a/linker/linker_config.cpp
+++ b/linker/linker_config.cpp
@@ -254,11 +254,10 @@
// the failure with INFO rather than DL_WARN. e.g. A binary in
// /data/local/tmp may attempt to stat /postinstall. See
// http://b/120996057.
- INFO("%s:%zd: warning: path \"%s\" couldn't be resolved: %s",
+ INFO("%s:%zd: warning: path \"%s\" couldn't be resolved: %m",
ld_config_file_path,
cp.lineno(),
- value.c_str(),
- strerror(errno));
+ value.c_str());
resolved_path = value;
}