Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/handle.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-03 11:48:24 -0500
committerDan McGee <dan@archlinux.org>2011-06-03 11:48:24 -0500
commit78cbc045c129ca7767b13127e1e17c400b112770 (patch)
treeaf797e98350f0f1b88637349b49e5a54194b6f79 /lib/libalpm/handle.c
parent9d73b261cf1bbe8db0b176aeb6a40eb9df61d1e9 (diff)
Remove ALPM_LOG_FUNC macro
The usefulness of this is rather limited due to it not being compiled into production builds. When you do choose to see the output, it is often overwhelming and not helpful. The best bet is to use a debugger and/or well-placed fprintf() statements. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/handle.c')
-rw-r--r--lib/libalpm/handle.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c
index 39b3b600..e94528f9 100644
--- a/lib/libalpm/handle.c
+++ b/lib/libalpm/handle.c
@@ -53,8 +53,6 @@ pmhandle_t *_alpm_handle_new()
void _alpm_handle_free(pmhandle_t *handle)
{
- ALPM_LOG_FUNC;
-
if(handle == NULL) {
return;
}
@@ -306,8 +304,6 @@ int SYMEXPORT alpm_option_set_root(const char *root)
char *realroot;
size_t rootlen;
- ALPM_LOG_FUNC;
-
ASSERT(handle != NULL, RET_ERR(PM_ERR_HANDLE_NULL, -1));
if(!root) {
@@ -348,8 +344,6 @@ int SYMEXPORT alpm_option_set_dbpath(const char *dbpath)
size_t dbpathlen, lockfilelen;
const char *lf = "db.lck";
- ALPM_LOG_FUNC;
-
ASSERT(handle != NULL, RET_ERR(PM_ERR_HANDLE_NULL, -1));
if(!dbpath) {
pm_errno = PM_ERR_WRONG_ARGS;
@@ -387,8 +381,6 @@ int SYMEXPORT alpm_option_add_cachedir(const char *cachedir)
char *newcachedir;
size_t cachedirlen;
- ALPM_LOG_FUNC;
-
ASSERT(handle != NULL, RET_ERR(PM_ERR_HANDLE_NULL, -1));
if(!cachedir) {
pm_errno = PM_ERR_WRONG_ARGS;
@@ -445,8 +437,6 @@ int SYMEXPORT alpm_option_set_logfile(const char *logfile)
{
char *oldlogfile = handle->logfile;
- ALPM_LOG_FUNC;
-
ASSERT(handle != NULL, RET_ERR(PM_ERR_HANDLE_NULL, -1));
if(!logfile) {
pm_errno = PM_ERR_WRONG_ARGS;
@@ -470,8 +460,6 @@ int SYMEXPORT alpm_option_set_logfile(const char *logfile)
int SYMEXPORT alpm_option_set_signaturedir(const char *signaturedir)
{
- ALPM_LOG_FUNC;
-
if(!signaturedir) {
pm_errno = PM_ERR_WRONG_ARGS;
return -1;