diff options
author | Marco d'Itri <md@Linux.IT> | 2005-11-07 18:44:18 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-11-07 18:44:18 +0100 |
commit | ff3e4bed21aaff673284f2e024da26c1e39cfda6 (patch) | |
tree | 41d3656f4ec95d0b3d7cc4d510501b7a2529c5b1 /udev_utils_file.c | |
parent | b6d474506f8935084e423f78035ea7206d4c3da0 (diff) |
add strerror() to error logs
Diffstat (limited to 'udev_utils_file.c')
-rw-r--r-- | udev_utils_file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/udev_utils_file.c b/udev_utils_file.c index f8518f64ad..23f61196b7 100644 --- a/udev_utils_file.c +++ b/udev_utils_file.c @@ -72,18 +72,18 @@ int unlink_secure(const char *filename) retval = chown(filename, 0, 0); if (retval) - dbg("chown(%s, 0, 0) failed with error '%s'", filename, strerror(errno)); + dbg("chown(%s, 0, 0) failed: %s", filename, strerror(errno)); retval = chmod(filename, 0000); if (retval) - dbg("chmod(%s, 0000) failed with error '%s'", filename, strerror(errno)); + dbg("chmod(%s, 0000) failed: %s", filename, strerror(errno)); retval = unlink(filename); if (errno == ENOENT) retval = 0; if (retval) - dbg("unlink(%s) failed with error '%s'", filename, strerror(errno)); + dbg("unlink(%s) failed: %s", filename, strerror(errno)); return retval; } |