]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Linux: cache bypass: remove warning print before panic
authorMarc Dionne <marc.c.dionne@gmail.com>
Fri, 2 Jul 2010 13:28:05 +0000 (09:28 -0400)
committerDerrick Brashear <shadow@dementia.org>
Fri, 2 Jul 2010 16:27:53 +0000 (09:27 -0700)
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 <matt@linuxbox.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/afs/afs_dcache.c

index 77dec65d8f48ed8c1de588e4cba7e15624e29fc5..f27e08a327d64ed8f18d08140e53e4b6b5c93509 100644 (file)
@@ -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);