diff --git a/src/xstat/xstat_cm_test.c b/src/xstat/xstat_cm_test.c index 256382a6ba..ed386d5e95 100644 --- a/src/xstat/xstat_cm_test.c +++ b/src/xstat/xstat_cm_test.c @@ -1124,6 +1124,19 @@ CM_Handler(void) return (0); } + if (debugging_on) { + int i; + int numInt32s = xstat_cm_Results.data.AFSCB_CollData_len; + afs_int32 *entry = xstat_cm_Results.data.AFSCB_CollData_val; + + printf("debug: got collection number %d\n", xstat_cm_Results.collectionNumber); + printf("debug: collection data length is %d\n", numInt32s); + for (i = 0; i < numInt32s; i++) { + printf("debug: entry %d %u\n", i, entry[i]); + } + printf("\n"); + } + switch (xstat_cm_Results.collectionNumber) { case AFSCB_XSTATSCOLL_CALL_INFO: /* Why was this commented out in 3.3 ? */ diff --git a/src/xstat/xstat_fs_test.c b/src/xstat/xstat_fs_test.c index 672944a40d..76f684234f 100644 --- a/src/xstat/xstat_fs_test.c +++ b/src/xstat/xstat_fs_test.c @@ -535,6 +535,19 @@ FS_Handler(void) return (0); } + if (debugging_on) { + int i; + int numInt32s = xstat_fs_Results.data.AFS_CollData_len; + afs_int32 *entry = xstat_fs_Results.data.AFS_CollData_val; + + printf("debug: got collection number %d\n", xstat_fs_Results.collectionNumber); + printf("debug: collection data length is %d\n", numInt32s); + for (i = 0; i < numInt32s; i++) { + printf("debug: entry %d %u\n", i, entry[i]); + } + printf("\n"); + } + switch (xstat_fs_Results.collectionNumber) { case AFS_XSTATSCOLL_CALL_INFO: PrintCallInfo();