summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/cache.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-01-02 02:57:02 +0100
committerDan McGee <dan@archlinux.org>2008-01-02 03:03:24 +0100
commit4abd710ec993bf5766fdbf2f1cf240a8d6e7d17f (patch)
treeb674f32972e3571f5851435f77db1a989b4733c6 /lib/libalpm/cache.c
parent860465b34ba86bdced01ec494cffb94f95301445 (diff)
downloadpacman-4abd710ec993bf5766fdbf2f1cf240a8d6e7d17f.tar.gz
pacman-4abd710ec993bf5766fdbf2f1cf240a8d6e7d17f.tar.xz
Remove gettext calls from debug-level messages
These used FUNCTION output level and not DEBUG, so I didn't catch them way back when I removed those gettext calls. Remove them now (which exposed a nice little memory access error elsewhere in the code). This should have a slight speedup effect on the code too as we no longer have to make the gettext call even when these messages aren't printed. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/cache.c')
-rw-r--r--lib/libalpm/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/cache.c b/lib/libalpm/cache.c
index f966bb2b..0ad923a5 100644
--- a/lib/libalpm/cache.c
+++ b/lib/libalpm/cache.c
@@ -57,7 +57,7 @@ int _alpm_db_load_pkgcache(pmdb_t *db)
_alpm_db_rewind(db);
while((info = _alpm_db_scan(db, NULL)) != NULL) {
- _alpm_log(PM_LOG_FUNCTION, _("adding '%s' to package cache for db '%s'\n"),
+ _alpm_log(PM_LOG_FUNCTION, "adding '%s' to package cache for db '%s'\n",
alpm_pkg_get_name(info), db->treename);
info->origin = PKG_FROM_CACHE;
info->origin_data.db = db;