From 4516e3777413f795ab09440bf300681750ed92fa Mon Sep 17 00:00:00 2001 From: Marc Dionne Date: Fri, 2 Jul 2010 09:28:05 -0400 Subject: [PATCH] Linux: cache bypass: remove warning print before panic This warning printf has some issues - it prints out pointers as ints with %d (which causes warnings), and if the intention was to print the referenced values, they wouldn't be set yet at that point in the function. Since the purpose is not clear and it has issues, just remove it. Change-Id: Ied69c390818f9dff235bdaa31af42996aaa39af3 Reviewed-on: http://gerrit.openafs.org/2325 Reviewed-by: Matt Benjamin Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/afs/afs_dcache.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/afs/afs_dcache.c b/src/afs/afs_dcache.c index 77dec65d8f..f27e08a327 100644 --- a/src/afs/afs_dcache.c +++ b/src/afs/afs_dcache.c @@ -1824,9 +1824,6 @@ afs_GetDCache(register struct vcache *avc, afs_size_t abyte, break; /* If we can't get space for 5 mins we give up and panic */ if (++downDCount > 300) { -#if defined(AFS_CACHE_BYPASS) - afs_warn("GetDCache calling osi_Panic: No space in five minutes.\n downDCount: %d\n aoffset: %d alen: %d\n", downDCount, aoffset, alen); -#endif osi_Panic("getdcache"); } ReleaseWriteLock(&afs_xdcache);