From 09f950af073ca82b03ef50dd6402fd72491a4770 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 8 Aug 2011 17:11:14 -0500 Subject: _alpm_access(): don't call gettext() in debug level loggers This is standard procedure elsewhere and cuts down on translations that won't be seen (and we don't want if we need English debug output anyway). Signed-off-by: Dan McGee --- lib/libalpm/util.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'lib/libalpm/util.c') diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index 123cd24e..bd0526ce 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -1011,16 +1011,20 @@ int _alpm_access(alpm_handle_t *handle, const char *dir, const char *file, int a if(ret != 0) { if (amode & R_OK) { - _alpm_log(handle, ALPM_LOG_DEBUG, _("\"%s%s\" is not readable: %s\n"), dir, file, strerror(errno)); + _alpm_log(handle, ALPM_LOG_DEBUG, "\"%s%s\" is not readable: %s\n", + dir, file, strerror(errno)); } if (amode & W_OK) { - _alpm_log(handle, ALPM_LOG_DEBUG, _("\"%s%s\" is not writable: %s\n"), dir, file, strerror(errno)); + _alpm_log(handle, ALPM_LOG_DEBUG, "\"%s%s\" is not writable: %s\n", + dir, file, strerror(errno)); } if (amode & X_OK) { - _alpm_log(handle, ALPM_LOG_DEBUG, _("\"%s%s\" is not executable: %s\n"), dir, file, strerror(errno)); + _alpm_log(handle, ALPM_LOG_DEBUG, "\"%s%s\" is not executable: %s\n", + dir, file, strerror(errno)); } if (amode == F_OK) { - _alpm_log(handle, ALPM_LOG_DEBUG, _("\"%s%s\" does not exist: %s\n"), dir, file, strerror(errno)); + _alpm_log(handle, ALPM_LOG_DEBUG, "\"%s%s\" does not exist: %s\n", + dir, file, strerror(errno)); } } return ret; -- cgit v1.2.3-24-g4f1b