[PATCH] EXA: Clean up debug messages
Owen Taylor
otaylor at huygens.home.fishsoup.net
Mon Apr 28 20:00:55 BST 2008
---
exa/exa_glyphs.c | 3 ---
exa/exa_priv.h | 2 +-
2 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/exa/exa_glyphs.c b/exa/exa_glyphs.c
index 851e439..27ecd4a 100644
--- a/exa/exa_glyphs.c
+++ b/exa/exa_glyphs.c
@@ -260,11 +260,9 @@ exaGlyphCacheHashLookup(ExaGlyphCachePtr cache,
return -1;
if (memcmp(pGlyph->sha1, cache->glyphs[entryPos].sha1, sizeof(pGlyph->sha1)) == 0){
- DBG_GLYPH_CACHE((" found entry at %d\n", slot));
return entryPos;
}
- DBG_GLYPH_CACHE((" lookup linear probe bumpalong\n"));
slot--;
if (slot < 0)
slot = cache->hashSize - 1;
@@ -284,7 +282,6 @@ exaGlyphCacheHashInsert(ExaGlyphCachePtr cache,
while (TRUE) { /* hash table can never be full */
if (cache->hashEntries[slot] == -1) {
- DBG_GLYPH_CACHE((" inserting entry at %d\n", slot));
cache->hashEntries[slot] = pos;
return;
}
diff --git a/exa/exa_priv.h b/exa/exa_priv.h
index 249966f..0ecad9f 100644
--- a/exa/exa_priv.h
+++ b/exa/exa_priv.h
@@ -61,7 +61,7 @@
#define DEBUG_MIGRATE 0
#define DEBUG_PIXMAP 0
#define DEBUG_OFFSCREEN 0
-#define DEBUG_GLYPH_CACHE 1
+#define DEBUG_GLYPH_CACHE 0
#if DEBUG_TRACE_FALL
#define EXA_FALLBACK(x) \
--
1.6.0.4
--------------020803010907060606020907
Content-Type: text/x-patch;
name="0005-EXA-Use-UploadToScreen-for-uploads-to-glyph-cache.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename*0="0005-EXA-Use-UploadToScreen-for-uploads-to-glyph-cache.patch"
More information about the Ubuntu-x
mailing list