From 701aad9131de3f3b0ea0823c6f39ed53adee0f8c Mon Sep 17 00:00:00 2001 From: neil Date: Thu, 22 Dec 2016 13:50:34 +0000 Subject: [PATCH] Small debugging enhancements. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@53088 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- arch/all-hosted/hidd/x11/onbitmap.c | 7 ++++--- arch/all-hosted/hidd/x11/x11_debug.h | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/all-hosted/hidd/x11/onbitmap.c b/arch/all-hosted/hidd/x11/onbitmap.c index cbfa0f44df..106406fd9f 100644 --- a/arch/all-hosted/hidd/x11/onbitmap.c +++ b/arch/all-hosted/hidd/x11/onbitmap.c @@ -244,7 +244,7 @@ BOOL X11BM_InitFB(OOP_Class *cl, OOP_Object *o, struct TagItem *attrList) /* * Now we need to get some message from the X11 task about when - * the window has been mapped (ie. MapWindow event). + * the window has been mapped (i.e. MapWindow event). * This is because we cannot render into the window until * it has been mapped. */ @@ -272,7 +272,7 @@ BOOL X11BM_InitFB(OOP_Class *cl, OOP_Object *o, struct TagItem *attrList) if (!(XSD(cl)->options & OPTION_DELAYXWINMAPPING)) { - D(bug("[X11OnBm] %s: notifying x11 task to map window..\n", __PRETTY_FUNCTION__)); + D(bug("[X11OnBm] %s: notifying x11 task to map window...\n", __PRETTY_FUNCTION__)); /* * Send a message to the X11 task to ask when the window has been mapped. * We change only notify_type, other fields are already set. @@ -429,7 +429,8 @@ VOID X11BM_ClearFB(struct bitmap_data *data, HIDDT_Pixel bg) VOID X11BM_ExposeFB(struct bitmap_data *data, WORD x, WORD y, WORD width, WORD height) { - D(bug("[X11OnBm] %s()\n", __PRETTY_FUNCTION__)); + D(bug("[X11OnBm] %s(%d, %d, %d, %d)\n", __PRETTY_FUNCTION__, + x, y, width, height)); if (!(data->flags & BMDF_BACKINGSTORE)) { diff --git a/arch/all-hosted/hidd/x11/x11_debug.h b/arch/all-hosted/hidd/x11/x11_debug.h index 0763a04ada..4cfb4058e1 100644 --- a/arch/all-hosted/hidd/x11/x11_debug.h +++ b/arch/all-hosted/hidd/x11/x11_debug.h @@ -3,5 +3,7 @@ $Id$ */ +#ifndef DEBUG #define DEBUG 0 +#endif #include -- 2.11.4.GIT