From dfe06c96c2c228a5cb7aeb0f123b73660a57543c Mon Sep 17 00:00:00 2001 From: Michael Meffie Date: Mon, 10 Dec 2012 18:02:20 -0500 Subject: [PATCH] xstat: remove unused call info function Remove the dead function PrintCallInfo(), which was replaced by print_cmCallStats() long, long ago. Change-Id: Id67323d66cc498f77e55f173218547ad5d4223c7 Reviewed-on: http://gerrit.openafs.org/8740 Tested-by: BuildBot Reviewed-by: Chas Williams - CONTRACTOR Reviewed-by: Derrick Brashear --- src/xstat/xstat_cm_test.c | 54 --------------------------------------- 1 file changed, 54 deletions(-) diff --git a/src/xstat/xstat_cm_test.c b/src/xstat/xstat_cm_test.c index 71e6fc5b7..ccda25f11 100644 --- a/src/xstat/xstat_cm_test.c +++ b/src/xstat/xstat_cm_test.c @@ -90,58 +90,6 @@ static char *xferOpNames[] = { }; -/*------------------------------------------------------------------------ - * PrintCallInfo - * - * Description: - * Print out the AFSCB_XSTATSCOLL_PERF_INFO collection we just - * received. - * - * Arguments: - * None. - * - * Returns: - * Nothing. - * - * Environment: - * All the info we need is nestled into xstat_cm_Results. - * - * Side Effects: - * As advertised. - *------------------------------------------------------------------------*/ - -void -PrintCallInfo(void) -{ /*PrintCallInfo */ - - int i; /*Loop variable */ - int numInt32s; /*# int32words returned */ - afs_int32 *currInt32; /*Ptr to current afs_int32 value */ - char *printableTime; /*Ptr to printable time string */ - time_t probeTime = xstat_cm_Results.probeTime; - /* - * Just print out the results of the particular probe. - */ - numInt32s = xstat_cm_Results.data.AFSCB_CollData_len; - currInt32 = (afs_int32 *) (xstat_cm_Results.data.AFSCB_CollData_val); - printableTime = ctime(&probeTime); - printableTime[strlen(printableTime) - 1] = '\0'; - - printf - ("AFSCB_XSTATSCOLL_CALL_INFO (coll %d) for CM %s\n[Poll %u, %s]\n\n", - xstat_cm_Results.collectionNumber, xstat_cm_Results.connP->hostName, - xstat_cm_Results.probeNum, printableTime); - - if (debugging_on) - printf("\n[%u entries returned at %" AFS_PTR_FMT "]\n\n", numInt32s, currInt32); - - for (i = 0; i < numInt32s; i++) - printf("%u ", *currInt32++); - printf("\n"); - - -} /*PrintCallInfo */ - /* Print detailed functional call statistics */ void @@ -1304,8 +1252,6 @@ CM_Handler(void) switch (xstat_cm_Results.collectionNumber) { case AFSCB_XSTATSCOLL_CALL_INFO: - /* Why was this commented out in 3.3 ? */ - /* PrintCallInfo(); */ print_cmCallStats(); break; -- 2.39.5