mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 17:00:15 +00:00
xstat: print collection values in debug mode
Print the values of the integers returned in the collection data when the -debug option is given to xstat_fs_test and xstat_cm_test test programs. This allows us to at least see what the unformatted values are when there is a mismatch in timeval sizes between the host and client (aka the 32/64 bit xstat bug). This change could break scripts which call the xstat test programs with the debug option. New debug output are prepended with 'debug:' to be easily ignored. Change-Id: I12d8d27306c50fb9f35ade2a080b3bc20542b63f Reviewed-on: http://gerrit.openafs.org/2878 Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
parent
7d76a5b4f9
commit
13aeb1dcae
@ -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 ? */
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user