From 36c6905dbc8d8ffad5e9bcfeb048fb41efd9472b Mon Sep 17 00:00:00 2001 From: "syd%netscape.com" Date: Sat, 5 Aug 2000 00:59:08 +0000 Subject: [PATCH] Add a couple of prlog messages. r=pavlov. git-svn-id: svn://10.0.0.236/trunk@75621 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/libimg/src/if.cpp | 4 ++++ mozilla/modules/libimg/src/ilclient.cpp | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/mozilla/modules/libimg/src/if.cpp b/mozilla/modules/libimg/src/if.cpp index 151e0140a64..f9d9c09fac3 100644 --- a/mozilla/modules/libimg/src/if.cpp +++ b/mozilla/modules/libimg/src/if.cpp @@ -51,7 +51,11 @@ PR_END_EXTERN_C #define HOWMANY(x, r) (((x) + ((r) - 1)) / (r)) #define ROUNDUP(x, r) (HOWMANY(x, r) * (r)) +#if defined( DEBUG ) +int il_debug=100; +#else int il_debug=0; +#endif /* Global list of image group contexts. */ static IL_GroupContext *il_global_img_cx_list = NULL; diff --git a/mozilla/modules/libimg/src/ilclient.cpp b/mozilla/modules/libimg/src/ilclient.cpp index d1105022190..269fa6b38f2 100644 --- a/mozilla/modules/libimg/src/ilclient.cpp +++ b/mozilla/modules/libimg/src/ilclient.cpp @@ -434,9 +434,10 @@ il_get_container(IL_GroupContext *img_cx, ic = il_find_in_cache(img_cx->display_type, hash, image_url, background_color, req_depth, req_width, req_height); - if (ic) { + ILTRACE(2,("il: il_get_container: found ic=0x%08x in cache for url %s\n", ic, image_url)); + /* This ic is being destroyed. Need a new one */ if ((ic->state == IC_ABORT_PENDING)) ic = NULL; @@ -450,6 +451,7 @@ il_get_container(IL_GroupContext *img_cx, /* could result in incorrect behavior. */ else if(cache_reload_policy == DONT_USE_IMG_CACHE){ + ILTRACE(2,("il: il_get_container: DONT_USE_IMG_CACHE ic=0x%08x discarding\n", ic)); /* Don't use old copy and purge it from cache.*/ if (!ic->is_in_use) { il_removefromcache(ic);