kwo pushed a commit to branch master. http://git.enlightenment.org/legacy/imlib2.git/commit/?id=3c21caea23617626396ced659943edff96f5a1b0
commit 3c21caea23617626396ced659943edff96f5a1b0 Author: Kim Woelders <k...@woelders.dk> Date: Sat Mar 6 06:39:20 2021 +0100 Correct (disabled) debug printouts --- src/lib/draw.c | 4 ++-- src/lib/image.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/draw.c b/src/lib/draw.c index f26b601..2dd3c10 100644 --- a/src/lib/draw.c +++ b/src/lib/draw.c @@ -36,7 +36,7 @@ __imlib_CreatePixmapsForImage(Display * d, Drawable w, Visual * v, int depth, ip->references++; #ifdef DEBUG_CACHE fprintf(stderr, - "[Imlib2] Match found in cache. Reference count is %d, pixmap 0x%08x, mask 0x%08x\n", + "[Imlib2] Match found in cache. Reference count is %d, pixmap 0x%08lx, mask 0x%08lx\n", ip->references, ip->pixmap, ip->mask); #endif return 2; @@ -83,7 +83,7 @@ __imlib_CreatePixmapsForImage(Display * d, Drawable w, Visual * v, int depth, __imlib_AddImagePixmapToCache(ip); #ifdef DEBUG_CACHE fprintf(stderr, - "[Imlib2] Created pixmap. Reference count is %d, pixmap 0x%08x, mask 0x%08x\n", + "[Imlib2] Created pixmap. Reference count is %d, pixmap 0x%08lx, mask 0x%08lx\n", ip->references, ip->pixmap, ip->mask); #endif return 1; diff --git a/src/lib/image.c b/src/lib/image.c index a20e8e7..c34e48c 100644 --- a/src/lib/image.c +++ b/src/lib/image.c @@ -317,7 +317,7 @@ __imlib_ConsumeImagePixmap(ImlibImagePixmap * ip) { #ifdef DEBUG_CACHE fprintf(stderr, - "[Imlib2] Deleting pixmap. Reference count is %d, pixmap 0x%08x, mask 0x%08x\n", + "[Imlib2] Deleting pixmap. Reference count is %d, pixmap 0x%08lx, mask 0x%08lx\n", ip->references, ip->pixmap, ip->mask); #endif if (ip->pixmap) @@ -865,7 +865,7 @@ __imlib_FindImlibImagePixmapByID(Display * d, Pixmap p) { #ifdef DEBUG_CACHE fprintf(stderr, - "[Imlib2] Match found. Reference count is %d, pixmap 0x%08x, mask 0x%08x\n", + "[Imlib2] Match found. Reference count is %d, pixmap 0x%08lx, mask 0x%08lx\n", ip->references, ip->pixmap, ip->mask); #endif return ip; @@ -915,7 +915,7 @@ __imlib_FreePixmap(Display * d, Pixmap p) ip->references--; #ifdef DEBUG_CACHE fprintf(stderr, - "[Imlib2] Reference count is now %d for pixmap 0x%08x\n", + "[Imlib2] Reference count is now %d for pixmap 0x%08lx\n", ip->references, ip->pixmap); #endif /* if it becaume 0 reference count - clean the cache up */ @@ -926,7 +926,7 @@ __imlib_FreePixmap(Display * d, Pixmap p) else { #ifdef DEBUG_CACHE - fprintf(stderr, "[Imlib2] Pixmap 0x%08x not found. Freeing.\n", p); + fprintf(stderr, "[Imlib2] Pixmap 0x%08lx not found. Freeing.\n", p); #endif XFreePixmap(d, p); } --