From da648bc24cebcf3fff9073693871183fd95d4c92 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Tue, 30 Jan 2007 08:14:10 +0000 Subject: K. Piche * ALPM_LOG_FUNCTION macro and all the great work to add this macro everywhere --- lib/libalpm/group.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/libalpm/group.c') diff --git a/lib/libalpm/group.c b/lib/libalpm/group.c index 922443ed..2068b02a 100644 --- a/lib/libalpm/group.c +++ b/lib/libalpm/group.c @@ -36,6 +36,8 @@ pmgrp_t *_alpm_grp_new() { pmgrp_t* grp; + ALPM_LOG_FUNC; + grp = calloc(1, sizeof(pmgrp_t)); if(grp == NULL) { _alpm_log(PM_LOG_ERROR, _("malloc failure: could not allocate %d bytes"), @@ -50,6 +52,8 @@ void _alpm_grp_free(void *data) { pmgrp_t *grp = data; + ALPM_LOG_FUNC; + if(grp == NULL) { return; } @@ -72,6 +76,8 @@ int _alpm_grp_cmp(const void *g1, const void *g2) const char SYMEXPORT *alpm_grp_get_name(pmgrp_t *grp) { + ALPM_LOG_FUNC; + /* Sanity checks */ ASSERT(grp != NULL, return(NULL)); @@ -80,6 +86,8 @@ const char SYMEXPORT *alpm_grp_get_name(pmgrp_t *grp) alpm_list_t SYMEXPORT *alpm_grp_get_packages(pmgrp_t *grp) { + ALPM_LOG_FUNC; + /* Sanity checks */ ASSERT(grp != NULL, return(NULL)); -- cgit v1.2.3-70-g09d2