#define AFS_SIZET_FMT "Iu"
#else
#define AFS_INT64_FMT "lld"
-#define AFS_PTR_FMT "x"
+#define AFS_PTR_FMT "p"
#define AFS_SIZET_FMT "u"
#endif
rxMaxMTU = atoi(argv[++a]);
if ((rxMaxMTU < RX_MIN_PACKET_SIZE) ||
(rxMaxMTU > RX_MAX_PACKET_DATA_SIZE)) {
- printf("rxMaxMTU %lu invalid; must be between %d-%d\n",
+ printf("rxMaxMTU %d invalid; must be between %d-%lu\n",
rxMaxMTU, RX_MIN_PACKET_SIZE,
RX_MAX_PACKET_DATA_SIZE);
PT_EXIT(1);
if (rx_Log_event) {
struct clock now1;
clock_GetTime(&now1);
- fprintf(rx_Log_event, "%ld.%ld: rxevent_Post(%ld.%ld, %lp, %lp, %lp, %d)\n",
+ fprintf(rx_Log_event, "%ld.%ld: rxevent_Post(%ld.%ld, "
+ "%"AFS_PTR_FMT", %"AFS_PTR_FMT", "
+ "%"AFS_PTR_FMT", %d)\n",
afs_printable_int32_ld(now1.sec),
afs_printable_int32_ld(now1.usec),
afs_printable_int32_ld(when->sec),
if (rx_Log_event) {
struct clock now;
clock_GetTime(&now);
- fprintf(rx_Log_event, "%d.%d: rxevent_Cancel_1(%d.%d, %lp, %lp)\n",
+ fprintf(rx_Log_event, "%d.%d: rxevent_Cancel_1(%d.%d, %"
+ AFS_PTR_FMT ", %p" AFS_PTR_FMT ")\n",
(int)now.sec, (int)now.usec, (int)ev->eventTime.sec,
(int)ev->eventTime.usec, ev->func.newfunc,
ev->arg);
void *a5;
{
afs_uint32 rcode;
- void (*old) ();
+ void (*old) (int);
- old = (void (*)())signal(SIGSYS, SIG_IGN);
+ old = signal(SIGSYS, SIG_IGN);
#if defined(AFS_SGI_ENV)
rcode = afs_syscall(a3, a4, a5);
if (xstat_cm_debug) {
printf
- ("%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",
+ ("%s: Calling RXAFSCB_GetXStats, conn=%" AFS_PTR_FMT ", clientVersionNumber=%d, collectionNumber=%d, srvVersionNumberP=%" AFS_PTR_FMT ", timeP=%" AFS_PTR_FMT ", dataP=%" 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%" AFS_PTR_FMT "]\n", rn,
+ printf("%s: [bufflen=%d, buffer at %" 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%" AFS_PTR_FMT "\n", rn,
+ printf("[%s] Signalling main process at %" AFS_PTR_FMT "\n", rn,
&terminationEvent);
oneShotCode = LWP_SignalProcess(&terminationEvent);
if (oneShotCode)
conn_err = 1;
}
if (xstat_cm_debug)
- printf("[%s] New connection at 0x%" AFS_PTR_FMT "\n", rn, curr_conn->rxconn);
+ printf("[%s] New connection at %" 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%" AFS_PTR_FMT "\n", rn,
+ printf("[%s] Probe LWP process structure located at %" AFS_PTR_FMT "\n", rn,
probeLWP_ID);
/*
xstat_cm_Results.probeNum, printableTime);
if (debugging_on)
- printf("\n[%d entries returned at 0x%x]\n\n", numInt32s, currInt32);
+ printf("\n[%d entries returned at %" 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,
- &terminationEvent);
+ printf("[%s] Calling LWP_WaitProcess() on event %" AFS_PTR_FMT
+ "\n", rn, &terminationEvent);
waitCode = LWP_WaitProcess(&terminationEvent);
if (debugging_on)
printf("[%s] Returned from LWP_WaitProcess()\n", rn);
if (xstat_fs_debug) {
printf
- ("%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",
+ ("%s: Calling RXAFS_GetXStats, conn=%" AFS_PTR_FMT ", clientVersionNumber=%d, collectionNumber=%d, srvVersionNumberP=%" AFS_PTR_FMT ", timeP=%" AFS_PTR_FMT ", dataP=%" 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%" AFS_PTR_FMT "]\n", rn,
+ printf("%s: [bufflen=%d, buffer at %" 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%" AFS_PTR_FMT "\n", rn,
+ printf("[%s] Signalling main process at %" 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%" AFS_PTR_FMT "\n", rn, curr_conn->rxconn);
+ printf("[%s] New connection at %" 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%" AFS_PTR_FMT "\n", rn,
+ printf("[%s] Probe LWP process structure located at %" AFS_PTR_FMT "\n", rn,
probeLWP_ID);
/*
printableTime);
if (debugging_on)
- printf("\n[%d entries returned at 0x%" AFS_PTR_FMT "]\n\n", numInt32s, currInt32);
+ printf("\n[%d entries returned at %" 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%" AFS_PTR_FMT "\n", rn,
+ printf("[%s] Calling LWP_WaitProcess() on event %" AFS_PTR_FMT "\n", rn,
&terminationEvent);
waitCode = LWP_WaitProcess(&terminationEvent);
if (debugging_on)