diff options
author | Michal Toman <mtoman@redhat.com> | 2010-09-07 10:25:54 +0200 |
---|---|---|
committer | Michal Toman <mtoman@redhat.com> | 2010-09-07 10:25:54 +0200 |
commit | f85dfd89a51f665c8e54a928cbbf0668c7defdb4 (patch) | |
tree | 1f766c1dd4a00cf66f6758a306698b4d354db192 /lib/utils/DebugDump.cpp | |
parent | 0c6c840fd670891a05a5392c7cc61be472b95a43 (diff) | |
download | abrt-f85dfd89a51f665c8e54a928cbbf0668c7defdb4.tar.gz abrt-f85dfd89a51f665c8e54a928cbbf0668c7defdb4.tar.xz abrt-f85dfd89a51f665c8e54a928cbbf0668c7defdb4.zip |
DebugDump.cpp: change error_msg to perror_msg
Diffstat (limited to 'lib/utils/DebugDump.cpp')
-rw-r--r-- | lib/utils/DebugDump.cpp | 2 |
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) |