diff options
author | Chantry Xavier <shiningxc@gmail.com> | 2007-11-04 20:53:34 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-11-04 18:04:43 -0600 |
commit | 0686fec8399e01adacd1633d6ad624ee2d5b6d9c (patch) | |
tree | 3cf0459c4a86d61d476f5598396a09bde1bb1547 /lib/libalpm/util.c | |
parent | b55abdce7aebb142ce79da3aa3645afe7693a3c4 (diff) |
Remove the newline automatically added by alpm_logaction.
This way, _alpm_logaction behaves like _alpm_log, and gives more control.
Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
Diffstat (limited to 'lib/libalpm/util.c')
-rw-r--r-- | lib/libalpm/util.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index 5df3a025..8ca6350b 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -485,7 +485,6 @@ int _alpm_logaction(unsigned short usesyslog, FILE *f, const char *fmt, va_list tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday, tm->tm_hour, tm->tm_min); ret = vfprintf(f, fmt, args); - fprintf(f, "\n"); fflush(f); } @@ -574,7 +573,7 @@ const char *_alpm_filecache_setup(void) /* cache directory does not exist.... try creating it */ _alpm_log(PM_LOG_WARNING, _("no %s cache exists, creating...\n"), cachedir); - alpm_logaction("warning: no %s cache exists, creating...", + alpm_logaction("warning: no %s cache exists, creating...\n", cachedir); if(_alpm_makepath(cachedir) == 0) { _alpm_log(PM_LOG_DEBUG, "using cachedir: %s\n", cachedir); @@ -593,7 +592,7 @@ const char *_alpm_filecache_setup(void) alpm_option_set_cachedirs(tmp); _alpm_log(PM_LOG_DEBUG, "using cachedir: %s", "/tmp/\n"); _alpm_log(PM_LOG_WARNING, _("couldn't create package cache, using /tmp instead\n")); - alpm_logaction("warning: couldn't create package cache, using /tmp instead"); + alpm_logaction("warning: couldn't create package cache, using /tmp instead\n"); return(alpm_list_getdata(tmp)); } |