[pacman-dev] [PATCH] alpm/remove.c: add newlines to debug output
Andrew Gregory
andrew.gregory.8 at gmail.com
Sun Mar 10 16:42:58 EDT 2013
Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
---
lib/libalpm/remove.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c
index 0642e04..d0cd613 100644
--- a/lib/libalpm/remove.c
+++ b/lib/libalpm/remove.c
@@ -278,7 +278,7 @@ static int dir_is_mountpoint(alpm_handle_t *handle, const char *directory,
struct stat dir_stbuf;
if(stat(directory, &dir_stbuf) < 0) {
_alpm_log(handle, ALPM_LOG_DEBUG,
- "failed to stat directory %s: %s",
+ "failed to stat directory %s: %s\n",
directory, strerror(errno));
return 0;
}
@@ -290,7 +290,7 @@ static int dir_is_mountpoint(alpm_handle_t *handle, const char *directory,
snprintf(parent_dir, PATH_MAX, "%s..", directory);
if(stat(parent_dir, &parent_stbuf) < 0) {
_alpm_log(handle, ALPM_LOG_DEBUG,
- "failed to stat parent of %s: %s: %s",
+ "failed to stat parent of %s: %s: %s\n",
directory, parent_dir, strerror(errno));
return 0;
}
--
1.8.1.5
More information about the pacman-dev
mailing list