diff options
Diffstat (limited to 'lib/libalpm/log.h')
-rw-r--r-- | lib/libalpm/log.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libalpm/log.h b/lib/libalpm/log.h index 471f4b79..eb0b718d 100644 --- a/lib/libalpm/log.h +++ b/lib/libalpm/log.h @@ -25,6 +25,13 @@ #define LOG_STR_LEN 1024 +#ifdef PACMAN_DEBUG +/* Log funtion entry points if debugging is enabled */ +#define ALPM_LOG_FUNC _alpm_log(PM_LOG_FUNCTION, "Enter %s", __func__) +#else +#define ALPM_LOG_FUNC +#endif + void _alpm_log(pmloglevel_t flag, char *fmt, ...); #endif /* _ALPM_LOG_H */ |