[vhffs-dev] [940] run the right function... |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 940
Author: gradator
Date: 2007-09-21 15:59:36 +0000 (Fri, 21 Sep 2007)
Log Message:
-----------
run the right function... fixed debug messages
Modified Paths:
--------------
trunk/vhffs-fs/vhffsfs.c
Modified: trunk/vhffs-fs/vhffsfs.c
===================================================================
--- trunk/vhffs-fs/vhffsfs.c 2007-09-21 15:48:48 UTC (rev 939)
+++ trunk/vhffs-fs/vhffsfs.c 2007-09-21 15:59:36 UTC (rev 940)
@@ -813,7 +813,7 @@
return;
}
#ifdef WITH_CHECKQUOTA_CACHE_DEBUG
- printf("CACHE: DELETING: %s\n", key);
+ printf("QUOTACACHE: DELETING: %s\n", key);
#endif
g_ptr_array_remove_fast(vhffsfs.quotacachekeys, key);
g_hash_table_remove(vhffsfs.quotacacheused, key);
@@ -830,7 +830,7 @@
// timeout
if(vhffsfs_cache_timeout(vcq->arrival, VHFFSFS_CHECKQUOTA_CACHE_TIMEOUT)) {
#ifdef WITH_CHECKQUOTA_CACHE_DEBUG
- fprintf(stdout, "CACHE: TIMEOUT: %s\n", key);
+ fprintf(stdout, "QUOTACACHE: TIMEOUT: %s\n", key);
#endif
vhffsfs_checkquota_cache_unlock();
vhffsfs_checkquota_cache_del(key);
@@ -838,7 +838,7 @@
}
// cache hit
#ifdef WITH_CHECKQUOTA_CACHE_DEBUG
- fprintf(stdout, "CACHE: HIT: %s\n", key);
+ fprintf(stdout, "QUOTACACHE: HIT: %s\n", key);
#endif
vcq->ref++;
vhffsfs_checkquota_cache_unlock();
@@ -846,7 +846,7 @@
}
// cache miss
#ifdef WITH_CHECKQUOTA_CACHE_DEBUG
- fprintf(stdout, "CACHE: MISS: %s\n", key);
+ fprintf(stdout, "QUOTACACHE: MISS: %s\n", key);
#endif
vhffsfs_checkquota_cache_unlock();
return NULL;
@@ -897,7 +897,7 @@
vcq = g_hash_table_lookup(vhffsfs.quotacacheused, key);
if(vcq && vhffsfs_cache_timeout(vcq->arrival, VHFFSFS_CHECKQUOTA_CACHE_TIMEOUT)) {
#ifdef WITH_CHECKQUOTA_CACHE_DEBUG
- fprintf(stdout, "CACHE: TIMEOUT: %d, %s\n", vcq->gid, vcq->path);
+ fprintf(stdout, "QUOTACACHE: TIMEOUT: %d, %s\n", vcq->gid, vcq->path);
#endif
vhffsfs_checkquota_cache_unlock();
vhffsfs_checkquota_cache_del(key);