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_selinux.c | |
parent | b6d474506f8935084e423f78035ea7206d4c3da0 (diff) |
add strerror() to error logs
Diffstat (limited to 'udev_selinux.c')
-rw-r--r-- | udev_selinux.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/udev_selinux.c b/udev_selinux.c index cc6f4d7d3f..719ff6403e 100644 --- a/udev_selinux.c +++ b/udev_selinux.c @@ -105,7 +105,7 @@ void selinux_setfilecon(const char *file, const char *devname, unsigned int mode } if (setfilecon(file, scontext) < 0) - dbg("setfilecon %s failed with error '%s'", file, strerror(errno)); + dbg("setfilecon %s failed: %s", file, strerror(errno)); freecon(scontext); } @@ -131,7 +131,7 @@ void selinux_setfscreatecon(const char *file, const char *devname, unsigned int } if (setfscreatecon(scontext) < 0) - dbg("setfscreatecon %s failed with error '%s'", file, strerror(errno)); + dbg("setfscreatecon %s failed: %s", file, strerror(errno)); freecon(scontext); } @@ -141,7 +141,7 @@ void selinux_resetfscreatecon(void) { if (is_selinux_running()) { if (setfscreatecon(prev_scontext) < 0) - dbg("setfscreatecon %s failed with error '%s'", file, strerror(errno)); + dbg("setfscreatecon failed: %s", strerror(errno)); } } |