summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-03-12 21:47:29 -0500
committerDan McGee <dan@archlinux.org>2012-03-12 21:47:29 -0500
commit5bda38196fbd6ad389fd829924736b007732e2f1 (patch)
treee43ad11db81a7b72254517e9b406fc64cf20f2f9
parent8de0631edbd1fd7681f6a924f5e166621328c13f (diff)
downloadpacman-5bda38196fbd6ad389fd829924736b007732e2f1.tar.xz
Minor format-string related cleanups
We had one stubbed out so we didn't require a translation update, and the other is more a code style issue. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--lib/libalpm/sync.c2
-rw-r--r--src/pacman/util.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 69d27af9..e84679a0 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -1187,7 +1187,7 @@ int _alpm_sync_commit(alpm_handle_t *handle, alpm_list_t **data)
_alpm_log(handle, ALPM_LOG_DEBUG, "checking available disk space\n");
if(_alpm_check_diskspace(handle) == -1) {
- _alpm_log(handle, ALPM_LOG_ERROR, "%s\n", _("not enough free disk space"));
+ _alpm_log(handle, ALPM_LOG_ERROR, _("not enough free disk space\n"));
return -1;
}
diff --git a/src/pacman/util.c b/src/pacman/util.c
index 7be3dc5c..c5f7a3bc 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -1146,7 +1146,7 @@ void print_packages(const alpm_list_t *packages)
free(size);
free(temp);
}
- printf("%s\n",string);
+ printf("%s\n", string);
free(string);
}
}