Add a couple of prlog messages. r=pavlov.
git-svn-id: svn://10.0.0.236/trunk@75621 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
de7f716024
commit
36c6905dbc
@ -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;
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user