From 2a1251c5d0c1b0fd4024d7b3282187a838b551fd 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. Change-Id: I1fd93344a7ebe11c6d5ad507dad87babe517785a Reviewed-on: http://gerrit.openafs.org/5810 Reviewed-by: Derrick Brashear Tested-by: BuildBot --- src/volser/dumpstuff.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/volser/dumpstuff.c b/src/volser/dumpstuff.c index b803e01ff..af0fc5a47 100644 --- a/src/volser/dumpstuff.c +++ b/src/volser/dumpstuff.c @@ -1152,10 +1152,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); @@ -1175,9 +1171,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; } @@ -1321,9 +1314,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