From 0de4f7ca6a1dd4232bfdac21985db995289d26ee Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Fri, 4 Nov 2011 17:19:28 -0500 Subject: [PATCH] volser: Remove debugging log messages While the -log option to volserver is supposed to print additional log information, it shouldn't spam the log with useless data. Remove some of the log lines that are really more "debug" information, so we log the same amount of information as in the 1.4 series. Reviewed-on: http://gerrit.openafs.org/5810 Reviewed-by: Derrick Brashear Tested-by: BuildBot (cherry picked from commit 2a1251c5d0c1b0fd4024d7b3282187a838b551fd) Change-Id: I1af47fa1910a98a6175f1f000d0432af1e1126e8 Reviewed-on: http://gerrit.openafs.org/5831 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/volser/dumpstuff.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/volser/dumpstuff.c b/src/volser/dumpstuff.c index 6c6fa3119..def1b0f1b 100644 --- a/src/volser/dumpstuff.c +++ b/src/volser/dumpstuff.c @@ -1158,10 +1158,6 @@ ProcessIndex(Volume * vp, VnodeClass class, afs_foff_t ** Bufp, int *sizep, (size <= vcp->diskSize ? 0 : size - vcp->diskSize) >> vcp->logSize; if (nVnodes > 0) { - if (DoLogging) { - Log("RestoreVolume ProcessIndex: Set up %d inodes for volume %d\n", - nVnodes, V_id(vp)); - } Buf = malloc(nVnodes * sizeof(afs_foff_t)); if (Buf == NULL) { STREAM_CLOSE(afile); @@ -1181,9 +1177,6 @@ ProcessIndex(Volume * vp, VnodeClass class, afs_foff_t ** Bufp, int *sizep, } offset += vcp->diskSize; } - if (DoLogging) { - Log("RestoreVolume ProcessIndex: found %d inodes\n", cnt); - } *Bufp = Buf; *sizep = nVnodes; } @@ -1327,9 +1320,6 @@ ReadVnodes(struct iod *iodp, Volume * vp, int incremental, if (!ReadInt32(iodp, &vnode->uniquifier)) return VOLSERREAD_DUMPERROR; - if (DoLogging) { - Log("ReadVnodes: setup %d/%d\n", vnodeNumber, vnode->uniquifier); - } while ((tag = iod_getc(iodp)) > D_MAX && tag != EOF) { haveStuff = 1; if (critical) -- 2.39.5