summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/utils/DebugDump.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/DebugDump.cpp b/lib/utils/DebugDump.cpp
index 689c9dae..2d18be14 100644
--- a/lib/utils/DebugDump.cpp
+++ b/lib/utils/DebugDump.cpp
@@ -433,7 +433,7 @@ static bool save_binary_file(const char *path, const char* data, unsigned size,
int fd = open(path, O_WRONLY | O_TRUNC | O_CREAT, 0640);
if (fd < 0)
{
- error_msg("Can't open file '%s': %s", path, errno ? strerror(errno) : "errno == 0");
+ perror_msg("Can't open file '%s'", path);
return false;
}
if (fchown(fd, uid, gid) == -1)