summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Woelders <kim@woelders.dk>2021-03-06 06:39:20 +0100
committerKim Woelders <kim@woelders.dk>2021-07-13 09:07:27 +0200
commit3c21caea23617626396ced659943edff96f5a1b0 (patch)
treedb63e9b53b877a06753c4b3730cf1c7267a49a2e
parent49af0f9d599ddd89cde880e46f3d2115a91a1f28 (diff)
downloadimlib2-3c21caea23617626396ced659943edff96f5a1b0.tar.gz
Correct (disabled) debug printouts
-rw-r--r--src/lib/draw.c4
-rw-r--r--src/lib/image.c8
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);
}