From: Marc Dionne Date: Fri, 2 Jul 2010 13:28:05 +0000 (-0400) Subject: Linux: cache bypass: remove warning print before panic X-Git-Tag: openafs-devel-1_5_75~20 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=4516e3777413f795ab09440bf300681750ed92fa;hp=95a814a26fae63e75fac99e2c8d586bd4725f204 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 --- diff --git a/src/afs/afs_dcache.c b/src/afs/afs_dcache.c index 77dec65..f27e08a 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);