summaryrefslogtreecommitdiff
path: root/exa/exa_migration.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2006-04-26 01:33:15 +0000
committerEric Anholt <anholt@freebsd.org>2006-04-26 01:33:15 +0000
commit6d156c044085881c6ecbd8a13521c0a26df71c30 (patch)
treecc18f9304f5853cf7dbe06692008ba9eee2f4f76 /exa/exa_migration.c
parenteaed7545a25a08b3223bf620c2ab6f80fe7cfdf6 (diff)
Improve the migration debugging output.
Diffstat (limited to 'exa/exa_migration.c')
-rw-r--r--exa/exa_migration.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/exa/exa_migration.c b/exa/exa_migration.c
index 8077f6802..29662b5cb 100644
--- a/exa/exa_migration.c
+++ b/exa/exa_migration.c
@@ -213,12 +213,12 @@ exaPixmapSave (ScreenPtr pScreen, ExaOffscreenArea *area)
PixmapPtr pPixmap = area->privData;
ExaPixmapPriv(pPixmap);
- DBG_MIGRATE (("Save %p (%p) (%dx%d)\n",
- (void*)pPixmap->drawable.id,
+ DBG_MIGRATE (("Save %p (%p) (%dx%d) (%c)\n", pPixmap,
(void*)(ExaGetPixmapPriv(pPixmap)->area ?
ExaGetPixmapPriv(pPixmap)->area->offset : 0),
pPixmap->drawable.width,
- pPixmap->drawable.height));
+ pPixmap->drawable.height,
+ exaPixmapIsDirty(pPixmap) ? 'd' : 'c'));
if (exaPixmapIsOffscreen(pPixmap)) {
exaCopyDirtyToSys (pPixmap);
@@ -289,11 +289,12 @@ exaMoveInPixmap (PixmapPtr pPixmap)
pExaPixmap->area->offset;
}
- DBG_MIGRATE (("-> 0x%lx (0x%x) (%dx%d)\n", pPixmap->drawable.id,
+ DBG_MIGRATE (("-> %p (0x%x) (%dx%d) (%c)\n", pPixmap,
(ExaGetPixmapPriv(pPixmap)->area ?
ExaGetPixmapPriv(pPixmap)->area->offset : 0),
pPixmap->drawable.width,
- pPixmap->drawable.height));
+ pPixmap->drawable.height,
+ exaPixmapIsDirty(pPixmap) ? 'd' : 'c'));
exaCopyDirtyToFb (pPixmap);
@@ -317,14 +318,15 @@ exaMoveOutPixmap (PixmapPtr pPixmap)
if (exaPixmapIsPinned(pPixmap))
return;
- DBG_MIGRATE (("<- 0x%p (0x%p) (%dx%d)\n",
- (void*)pPixmap->drawable.id,
- (void*)(ExaGetPixmapPriv(pPixmap)->area ?
- ExaGetPixmapPriv(pPixmap)->area->offset : 0),
- pPixmap->drawable.width,
- pPixmap->drawable.height));
-
if (exaPixmapIsOffscreen(pPixmap)) {
+
+ DBG_MIGRATE (("<- %p (%p) (%dx%d) (%c)\n", pPixmap,
+ (void*)(ExaGetPixmapPriv(pPixmap)->area ?
+ ExaGetPixmapPriv(pPixmap)->area->offset : 0),
+ pPixmap->drawable.width,
+ pPixmap->drawable.height,
+ exaPixmapIsDirty(pPixmap) ? 'd' : 'c'));
+
exaCopyDirtyToSys (pPixmap);
pPixmap->devPrivate.ptr = pExaPixmap->sys_ptr;