diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-04-20 21:07:06 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-04-20 21:07:06 +0200 |
commit | c70560feef0eb61a150cd2f956f0beead4313ffe (patch) | |
tree | 48db1f001e87e46b0ccd2b30704b87a8662ba9b9 /udev_utils_file.c | |
parent | 1d918b50cddc975abbfd06af134a6d843d9bc7f0 (diff) |
logging: add trailing newline to all strings
Diffstat (limited to 'udev_utils_file.c')
-rw-r--r-- | udev_utils_file.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/udev_utils_file.c b/udev_utils_file.c index 19668b936f..a492785af9 100644 --- a/udev_utils_file.c +++ b/udev_utils_file.c @@ -47,14 +47,14 @@ int create_path(const char *path) pos--; pos[0] = '\0'; - dbg("stat '%s'", p); + dbg("stat '%s'\n", p); if (stat(p, &stats) == 0 && (stats.st_mode & S_IFMT) == S_IFDIR) return 0; if (create_path(p) != 0) return -1; - dbg("mkdir '%s'", p); + dbg("mkdir '%s'\n", p); selinux_setfscreatecon(p, NULL, S_IFDIR|0755); ret = mkdir(p, 0755); selinux_resetfscreatecon(); @@ -93,10 +93,10 @@ int delete_path(const char *path) if (retval) { if (errno == ENOTEMPTY) return 0; - err("rmdir(%s) failed: %s", p, strerror(errno)); + err("rmdir(%s) failed: %s\n", p, strerror(errno)); break; } - dbg("removed '%s'", p); + dbg("removed '%s'\n", p); } return 0; } @@ -110,18 +110,18 @@ int unlink_secure(const char *filename) retval = chown(filename, 0, 0); if (retval) - err("chown(%s, 0, 0) failed: %s", filename, strerror(errno)); + err("chown(%s, 0, 0) failed: %s\n", filename, strerror(errno)); retval = chmod(filename, 0000); if (retval) - err("chmod(%s, 0000) failed: %s", filename, strerror(errno)); + err("chmod(%s, 0000) failed: %s\n", filename, strerror(errno)); retval = unlink(filename); if (errno == ENOENT) retval = 0; if (retval) - err("unlink(%s) failed: %s", filename, strerror(errno)); + err("unlink(%s) failed: %s\n", filename, strerror(errno)); return retval; } |