From f85dfd89a51f665c8e54a928cbbf0668c7defdb4 Mon Sep 17 00:00:00 2001 From: Michal Toman Date: Tue, 7 Sep 2010 10:25:54 +0200 Subject: DebugDump.cpp: change error_msg to perror_msg --- lib/utils/DebugDump.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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) -- cgit