From c72cd42364206f4fe237d26e582cef86351f75a8 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Fri, 2 Jul 2010 14:28:29 -0500 Subject: [PATCH] Fix VPrintDiskStats_r logging VPrintDiskStats_r tried to log some information using separate Log() statements on the same line. This looks very odd when logged, since we add a timestamp to every Log() call these days. Fix it to print the line as one call to Log(). Change-Id: I19a5365c24208229201ba54ff04e793b5e50eee5 Reviewed-on: http://gerrit.openafs.org/2359 Tested-by: Andrew Deason Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/vol/partition.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/vol/partition.c b/src/vol/partition.c index c97668ae3..ca0aa3bc9 100644 --- a/src/vol/partition.c +++ b/src/vol/partition.c @@ -1092,12 +1092,15 @@ VPrintDiskStats_r(void) { struct DiskPartition64 *dp; for (dp = DiskPartitionList; dp; dp = dp->next) { - Log("Partition %s: %d available 1K blocks (minfree=%d), ", dp->name, - dp->totalUsable, dp->minFree); - if (dp->free < 0) - Log("overallocated by %d blocks\n", -dp->free); - else - Log("%d free blocks\n", dp->free); + if (dp->free < 0) { + Log("Partition %s: %d available 1K blocks (minfree=%d), " + "overallocated by %d blocks\n", dp->name, + dp->totalUsable, dp->minFree, -dp->free); + } else { + Log("Partition %s: %d available 1K blocks (minfree=%d), " + "%d free blocks\n", dp->name, + dp->totalUsable, dp->minFree, dp->free); + } } } -- 2.39.5