if (xstat_cm_debug) {
printf
- ("%s: Calling RXAFSCB_GetXStats, conn=0x%x, clientVersionNumber=%d, collectionNumber=%d, srvVersionNumberP=0x%x, timeP=0x%x, dataP=0x%x\n",
+ ("%s: Calling RXAFSCB_GetXStats, conn=0x%" AFS_PTR_FMT ", clientVersionNumber=%d, collectionNumber=%d, srvVersionNumberP=0x%" AFS_PTR_FMT ", timeP=0x%" AFS_PTR_FMT ", dataP=0x%" AFS_PTR_FMT "\n",
rn, curr_conn->rxconn, clientVersionNumber,
*currCollIDP, &srvVersionNumber,
&(xstat_cm_Results.probeTime),
&(xstat_cm_Results.data));
- printf("%s: [bufflen=%d, buffer at 0x%x]\n", rn,
+ printf("%s: [bufflen=%d, buffer at 0x%" AFS_PTR_FMT "]\n", rn,
xstat_cm_Results.data.AFSCB_CollData_len,
xstat_cm_Results.data.AFSCB_CollData_val);
}
* that we've finished our collection round.
*/
if (xstat_cm_debug)
- printf("[%s] Signalling main process at 0x%x\n", rn,
+ printf("[%s] Signalling main process at 0x%" AFS_PTR_FMT "\n", rn,
&terminationEvent);
oneShotCode = LWP_SignalProcess(&terminationEvent);
if (oneShotCode)
*/
if (xstat_cm_debug) {
printf("[%s] Copying in the following socket info:\n", rn);
- printf("[%s] IP addr 0s, port %d\n", rn,
+ printf("[%s] IP addr 0s, port %d\n",
afs_inet_ntoa_r((a_socketArray + curr_srv)->sin_addr.s_addr,hoststr),
ntohs((a_socketArray + curr_srv)->sin_port));
}
conn_err = 1;
}
if (xstat_cm_debug)
- printf("[%s] New connection at 0x%lx\n", rn, curr_conn->rxconn);
+ printf("[%s] New connection at 0x%" AFS_PTR_FMT "\n", rn, curr_conn->rxconn);
/*
* Bump the current xstat_cm connection to set up.
return (code);
}
if (xstat_cm_debug)
- printf("[%s] Probe LWP process structure located at 0x%x\n", rn,
+ printf("[%s] Probe LWP process structure located at 0x%" AFS_PTR_FMT "\n", rn,
probeLWP_ID);
/*
if (xstat_fs_debug) {
printf
- ("%s: Calling RXAFS_GetXStats, conn=0x%x, clientVersionNumber=%d, collectionNumber=%d, srvVersionNumberP=0x%x, timeP=0x%x, dataP=0x%x\n",
+ ("%s: Calling RXAFS_GetXStats, conn=0x%" AFS_PTR_FMT ", clientVersionNumber=%d, collectionNumber=%d, srvVersionNumberP=0x%" AFS_PTR_FMT ", timeP=0x%" AFS_PTR_FMT ", dataP=0x%" AFS_PTR_FMT "\n",
rn, curr_conn->rxconn, clientVersionNumber,
*currCollIDP, &srvVersionNumber,
&(xstat_fs_Results.probeTime),
&(xstat_fs_Results.data));
- printf("%s: [bufflen=%d, buffer at 0x%x]\n", rn,
+ printf("%s: [bufflen=%d, buffer at 0x%" AFS_PTR_FMT "]\n", rn,
xstat_fs_Results.data.AFS_CollData_len,
xstat_fs_Results.data.AFS_CollData_val);
}
* that we've finished our collection round.
*/
if (xstat_fs_debug)
- printf("[%s] Signalling main process at 0x%x\n", rn,
+ printf("[%s] Signalling main process at 0x%" AFS_PTR_FMT "\n", rn,
&terminationEvent);
oneShotCode = LWP_SignalProcess(&terminationEvent);
if (oneShotCode)
conn_err = 1;
}
if (xstat_fs_debug)
- printf("[%s] New connection at 0x%lx\n", rn, curr_conn->rxconn);
+ printf("[%s] New connection at 0x%" AFS_PTR_FMT "\n", rn, curr_conn->rxconn);
/*
* Bump the current xstat_fs connection to set up.
return (code);
}
if (xstat_fs_debug)
- printf("[%s] Probe LWP process structure located at 0x%x\n", rn,
+ printf("[%s] Probe LWP process structure located at 0x%" AFS_PTR_FMT "\n", rn,
probeLWP_ID);
/*
afs_int32
SRXAFSCB_WhoAreYou(struct rx_call * rxcall, struct interfaceAddr * addr)
{
- int i;
int code = 0;
- int count;
#if XSTAT_FS_CALLBACK_VERBOSE
static char rn[] = "SRXAFSCB_WhoAreYou"; /*Routine name */
struct interfaceAddr * addr,
Capabilities * capabilites)
{
- int i;
int code = 0;
- int count;
#if XSTAT_FS_CALLBACK_VERBOSE
static char rn[] = "SRXAFSCB_TellMeAboutYourself"; /*Routine name */
printableTime);
if (debugging_on)
- printf("\n[%d entries returned at 0x%x]\n\n", numInt32s, currInt32);
+ printf("\n[%d entries returned at 0x%" AFS_PTR_FMT "]\n\n", numInt32s, currInt32);
for (i = 0; i < numInt32s; i++)
printf("%d ", *currInt32++);
* One-shot operation; just wait for the collection to be done.
*/
if (debugging_on)
- printf("[%s] Calling LWP_WaitProcess() on event 0x%x\n", rn,
+ printf("[%s] Calling LWP_WaitProcess() on event 0x%" AFS_PTR_FMT "\n", rn,
&terminationEvent);
waitCode = LWP_WaitProcess(&terminationEvent);
if (debugging_on)