summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-03-02 19:00:57 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-03-02 19:00:57 +0000
commit79f4b5acf407e6fdf054de323e11c9b5a4f97580 (patch)
tree24190b207bd2000d80a284a91482b5d3820669a6 /lib
parent0b4ab2c0a80e8581e2caa50e809af7f5573c0e48 (diff)
downloadpacman-79f4b5acf407e6fdf054de323e11c9b5a4f97580.tar.xz
added a debug log
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/handle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c
index 28f07507..5300fa13 100644
--- a/lib/libalpm/handle.c
+++ b/lib/libalpm/handle.c
@@ -46,6 +46,7 @@ pmhandle_t *handle_new()
handle = (pmhandle_t *)malloc(sizeof(pmhandle_t));
if(handle == NULL) {
+ _alpm_log(PM_LOG_ERROR, "malloc failure: could not allocate %d bytes", sizeof(pmhandle_t));
RET_ERR(PM_ERR_MEMORY, NULL);
}