}
code = ubik_Read(ut, buff, len);
if (code) {
- LogError(code, "dbread: ubik_Read pos %d, buff %"AFS_PTR_FMT
- ", len %d\n", pos, buff, len);
+ LogError(code, "dbread: ubik_Read pos %d, buff %p, len %d\n",
+ pos, buff, len);
ERROR(code);
}
}
code = ubik_Read(ut, buff, len);
if (code) {
- LogError(code, "cdbread: ubik_Read pos 0x%x, buff %"AFS_PTR_FMT
- ", len %d\n", pos, buff, len);
+ LogError(code, "cdbread: ubik_Read pos 0x%x, buff %p, len %d\n",
+ pos, buff, len);
ERROR(code);
}
htonl(ea));
if (code)
return BUDB_IO;
- LogDebug(5, "Hashin: set %"AFS_PTR_FMT" to %d\n",
+ LogDebug(5, "Hashin: set %p to %d\n",
&block->b.bucket[bo], htonl(ea));
pentries = &ht->entries;
char *textPtr;
afs_int32 code;
- LogDebug(5, "GetText: type %d, offset %d, nextOffset %"AFS_PTR_FMT
- ", maxLength %d\n", textType, offset, nextOffset, maxLength);
+ LogDebug(5, "GetText: type %d, offset %d, nextOffset %p, maxLength %d\n",
+ textType, offset, nextOffset, maxLength);
if (callPermitted(call) == 0) {
code = BUDB_NOTPERMITTED;
#ifdef AFS_NT40_ENV
# define AFS_INT64_FMT "I64d"
# define AFS_UINT64_FMT "I64u"
-# define AFS_PTR_FMT "p"
# define AFS_SIZET_FMT "Iu"
#else
# define AFS_INT64_FMT "lld"
# define AFS_UINT64_FMT "llu"
-# define AFS_PTR_FMT "p"
# ifdef PRINTF_TAKES_Z_LEN
# define AFS_SIZET_FMT "zu"
# else
/* A null name is no good */
if (ep->name[0] == '\000') {
- printf("Dir entry %"AFS_PTR_FMT
- " in chain %d has bogus (null) name.\n", ep, i);
+ printf("Dir entry %p in chain %d has bogus (null) name.\n",
+ ep, i);
DRelease(&entrybuf, 0);
DRelease(&headerbuf, 0);
return 0;
/* The entry flag better be FFIRST */
if (ep->flag != FFIRST) {
- printf("Dir entry %"AFS_PTR_FMT
- " in chain %d has bogus flag field.\n", ep, i);
+ printf("Dir entry %p in chain %d has bogus flag field.\n",
+ ep, i);
DRelease(&entrybuf, 0);
DRelease(&headerbuf, 0);
return 0;
/* Check the size of the name */
j = strlen(ep->name);
if (j >= MAXENAME) { /* MAXENAME counts the null */
- printf("Dir entry %"AFS_PTR_FMT
- " in chain %d has too-long name.\n", ep, i);
+ printf("Dir entry %p in chain %d has too-long name.\n", ep, i);
DRelease(&entrybuf, 0);
DRelease(&headerbuf, 0);
return 0;
/* Hash the name and make sure it is in the correct name hash */
if ((j = afs_dir_DirHash(ep->name)) != i) {
- printf("Dir entry %"AFS_PTR_FMT
- " should be in hash bucket %d but IS in %d.\n",
+ printf("Dir entry %p should be in hash bucket %d but IS in %d.\n",
ep, j, i);
DRelease(&entrybuf, 0);
DRelease(&headerbuf, 0);
havedot = 1;
} else {
printf
- ("Dir entry %"AFS_PTR_FMT
- ", index 13 has name '%s' should be '.'\n",
+ ("Dir entry %p, index 13 has name '%s' should be '.'\n",
ep, ep->name);
DRelease(&entrybuf, 0);
DRelease(&headerbuf, 0);
havedotdot = 1;
} else {
printf
- ("Dir entry %"AFS_PTR_FMT
- ", index 14 has name '%s' should be '..'\n",
+ ("Dir entry %p, index 14 has name '%s' should be '..'\n",
ep, ep->name);
DRelease(&entrybuf, 0);
DRelease(&headerbuf, 0);
#endif
printf("stackcheck = %u: stack = %u \n", lwp_cpptr->stackcheck,
*(int *)lwp_cpptr->stack);
- printf("topstack = 0x%" AFS_PTR_FMT ": stackptr = 0x%" AFS_PTR_FMT ": stacksize = 0x%x\n",
+ printf("topstack = %p: stackptr = %p: stacksize = 0x%x\n",
(void *)(uintptr_t)lwp_cpptr->context.topstack,
(void *)(uintptr_t)lwp_cpptr->stack,
lwp_cpptr->stacksize);
rxi_WakeUpTransmitQueue(struct rx_call *call)
{
if (call->tqWaiters || (call->flags & RX_CALL_TQ_WAIT)) {
- dpf(("call %"AFS_PTR_FMT" has %d waiters and flags %d\n",
+ dpf(("call %p has %d waiters and flags %d\n",
call, call->tqWaiters, call->flags));
#ifdef RX_ENABLE_LOCKS
MUTEX_ASSERT(&call->lock);
SPLVAR;
clock_NewTime();
- dpf(("rx_NewCall(conn %"AFS_PTR_FMT")\n", conn));
+ dpf(("rx_NewCall(conn %p)\n", conn));
NETPRI;
clock_GetTime(&queueTime);
MUTEX_EXIT(&call->lock);
USERPRI;
- dpf(("rx_NewCall(call %"AFS_PTR_FMT")\n", call));
+ dpf(("rx_NewCall(call %p)\n", call));
return call;
}
#endif
rxi_calltrace(RX_CALL_START, call);
- dpf(("rx_GetCall(port=%d, service=%d) ==> call %"AFS_PTR_FMT"\n",
+ dpf(("rx_GetCall(port=%d, service=%d) ==> call %p\n",
call->conn->service->servicePort, call->conn->service->serviceId,
call));
afs_int32 error;
SPLVAR;
- dpf(("rx_EndCall(call %"AFS_PTR_FMT" rc %d error %d abortCode %d)\n",
+ dpf(("rx_EndCall(call %p rc %d error %d abortCode %d)\n",
call, rc, call->error, call->abortCode));
NETPRI;
struct opr_queue *cursor;
#endif
- dpf(("rxi_NewCall(conn %"AFS_PTR_FMT", channel %d)\n", conn, channel));
+ dpf(("rxi_NewCall(conn %p, channel %d)\n", conn, channel));
/* Grab an existing call structure, or allocate a new one.
* Existing call structures are assumed to have been left reset by
* this is the first time the packet has been seen */
packetType = (np->header.type > 0 && np->header.type < RX_N_PACKET_TYPES)
? rx_packetTypes[np->header.type - 1] : "*UNKNOWN*";
- dpf(("R %d %s: %x.%d.%d.%d.%d.%d.%d flags %d, packet %"AFS_PTR_FMT"\n",
+ dpf(("R %d %s: %x.%d.%d.%d.%d.%d.%d flags %d, packet %p\n",
np->header.serial, packetType, ntohl(host), ntohs(port), np->header.serviceId,
np->header.epoch, np->header.cid, np->header.callNumber,
np->header.seq, np->header.flags, np));
if (rx_stats_active)
rx_atomic_inc(&rx_stats.noPacketBuffersOnRead);
rxi_calltrace(RX_TRACE_DROP, call);
- dpf(("packet %"AFS_PTR_FMT" dropped on receipt - quota problems\n", np));
+ dpf(("packet %p dropped on receipt - quota problems\n", np));
/* We used to clear the receive queue here, in an attempt to free
* packets. However this is unsafe if the queue has received a
* soft ACK for the final packet */
&& opr_queue_First(&call->rq, struct rx_packet, entry)->header.seq == seq) {
if (rx_stats_active)
rx_atomic_inc(&rx_stats.dupPacketsRead);
- dpf(("packet %"AFS_PTR_FMT" dropped on receipt - duplicate\n", np));
+ dpf(("packet %p dropped on receipt - duplicate\n", np));
rxi_CancelDelayedAckEvent(call);
np = rxi_SendAck(call, np, serial, RX_ACK_DUPLICATE, istack);
ackNeeded = 0;
#ifdef RXDEBUG_PACKET
call->rqc -= count;
if ( call->rqc != 0 )
- dpf(("rxi_ClearReceiveQueue call %"AFS_PTR_FMT" rqc %u != 0\n", call, call->rqc));
+ dpf(("rxi_ClearReceiveQueue call %p rqc %u != 0\n", call, call->rqc));
#endif
call->flags &= ~(RX_CALL_RECEIVE_DONE | RX_CALL_HAVE_LAST);
}
if (error) {
int i;
- dpf(("rxi_ConnectionError conn %"AFS_PTR_FMT" error %d\n", conn, error));
+ dpf(("rxi_ConnectionError conn %p error %d\n", conn, error));
MUTEX_ENTER(&conn->conn_data_lock);
if (rxevent_Cancel(&conn->challengeEvent))
rxi_CallError(struct rx_call *call, afs_int32 error)
{
MUTEX_ASSERT(&call->lock);
- dpf(("rxi_CallError call %"AFS_PTR_FMT" error %d call->error %d\n", call, error, call->error));
+ dpf(("rxi_CallError call %p error %d call->error %d\n", call, error, call->error));
if (call->error)
error = call->error;
struct rx_packet *packet;
MUTEX_ASSERT(&call->lock);
- dpf(("rxi_ResetCall(call %"AFS_PTR_FMT", newcall %d)\n", call, newcall));
+ dpf(("rxi_ResetCall(call %p, newcall %d)\n", call, newcall));
/* Notify anyone who is waiting for asynchronous packet arrival */
if (call->arrivalProc) {
rxi_ClearTransmitQueue(call, 1);
if (call->tqWaiters || (flags & RX_CALL_TQ_WAIT)) {
- dpf(("rcall %"AFS_PTR_FMT" has %d waiters and flags %d\n", call, call->tqWaiters, call->flags));
+ dpf(("rcall %p has %d waiters and flags %d\n", call, call->tqWaiters, call->flags));
}
call->flags = 0;
nXmitPackets, istack);
goto restart;
}
- dpf(("call %d xmit packet %"AFS_PTR_FMT"\n",
+ dpf(("call %d xmit packet %p\n",
*(call->callNumber), p));
call->xmitList[nXmitPackets++] = p;
}
return; /* somebody set the clock back, don't count this time. */
clock_Sub(&thisRtt, sentp);
- dpf(("rxi_ComputeRoundTripTime(call=%d packet=%"AFS_PTR_FMT" rttp=%d.%06d sec)\n",
+ dpf(("rxi_ComputeRoundTripTime(call=%d packet=%p rttp=%d.%06d sec)\n",
p->header.callNumber, p, thisRtt.sec, thisRtt.usec));
if (clock_IsZero(&thisRtt)) {
peer->rtt_dev = call->rtt_dev;
peer->rtt = call->rtt;
- dpf(("rxi_ComputeRoundTripTime(call=%d packet=%"AFS_PTR_FMT" rtt=%d ms, srtt=%d ms, rtt_dev=%d ms, timeout=%d.%06d sec)\n",
- p->header.callNumber, p, MSEC(&thisRtt), call->rtt >> 3, call->rtt_dev >> 2, (call->rto.sec), (call->rto.usec)));
+ dpf(("rxi_ComputeRoundTripTime(call=%d packet=%p rtt=%d ms, srtt=%d ms, "
+ "rtt_dev=%d ms, timeout=%d.%06d sec)\n",
+ p->header.callNumber, p, MSEC(&thisRtt), call->rtt >> 3,
+ call->rtt_dev >> 2, (call->rto.sec), (call->rto.usec)));
}
static void
rxi_FreePacketNoLock(struct rx_packet *p)
{
- dpf(("Free %"AFS_PTR_FMT"\n", p));
+ dpf(("Free %p\n", p));
RX_FPQ_MARK_FREE(p);
rx_nFreePackets++;
rxi_FreePacketTSFPQ(struct rx_packet *p, int flush_global)
{
struct rx_ts_info_t * rx_ts_info;
- dpf(("Free %"AFS_PTR_FMT"\n", p));
+ dpf(("Free %p\n", p));
RX_TS_INFO_GET(rx_ts_info);
RX_TS_FPQ_CHECKIN(rx_ts_info,p);
RX_TS_FPQ_CHECKOUT(rx_ts_info,p);
- dpf(("Alloc %"AFS_PTR_FMT", class %d\n", p, class));
+ dpf(("Alloc %p, class %d\n", p, class));
/* have to do this here because rx_FlushWrite fiddles with the iovs in
opr_queue_Remove(&p->entry);
RX_FPQ_MARK_USED(p);
- dpf(("Alloc %"AFS_PTR_FMT", class %d\n", p, class));
+ dpf(("Alloc %p, class %d\n", p, class));
/* have to do this here because rx_FlushWrite fiddles with the iovs in
RX_TS_FPQ_CHECKOUT(rx_ts_info,p);
- dpf(("Alloc %"AFS_PTR_FMT", class %d\n", p, class));
+ dpf(("Alloc %p, class %d\n", p, class));
/* have to do this here because rx_FlushWrite fiddles with the iovs in
* order to truncate outbound packets. In the near future, may need
#endif
#ifdef RXDEBUG
}
- dpf(("%c %d %s: %x.%u.%u.%u.%u.%u.%u flags %d, packet %"AFS_PTR_FMT" len %d\n",
+ dpf(("%c %d %s: %x.%u.%u.%u.%u.%u.%u flags %d, packet %p len %d\n",
deliveryType, p->header.serial, rx_packetTypes[p->header.type - 1], ntohl(peer->host),
ntohs(peer->port), p->header.serial, p->header.epoch, p->header.cid, p->header.callNumber,
p->header.seq, p->header.flags, p, p->length));
osi_Assert(p != NULL);
- dpf(("%c %d %s: %x.%u.%u.%u.%u.%u.%u flags %d, packet %"AFS_PTR_FMT" len %d\n",
+ dpf(("%c %d %s: %x.%u.%u.%u.%u.%u.%u flags %d, packet %p len %d\n",
deliveryType, p->header.serial, rx_packetTypes[p->header.type - 1], ntohl(peer->host),
ntohs(peer->port), p->header.serial, p->header.epoch, p->header.cid, p->header.callNumber,
p->header.seq, p->header.flags, p, p->length));
char hoststr[16];
if (wasdeleted) {
/* someone locked the host while HOSTDELETED was set; that is bad */
- ViceLog(0, ("Warning: h_TossStuff_r failed; Host %" AFS_PTR_FMT
+ ViceLog(0, ("Warning: h_TossStuff_r failed; Host %p"
" (%s:%d flags 0x%x) was locked.\n",
host, afs_inet_ntoa_r(host->z.host, hoststr), ntohs(host->z.port),
(unsigned)host->z.hostFlags));
char hoststr[16];
if (wasdeleted) {
/* someone grabbed a ref while HOSTDELETED was set; that is bad */
- ViceLog(0, ("Warning: h_TossStuff_r failed; Host %" AFS_PTR_FMT
+ ViceLog(0, ("Warning: h_TossStuff_r failed; Host %p"
" (%s:%d flags 0x%x) was held.\n",
host, afs_inet_ntoa_r(host->z.host, hoststr), ntohs(host->z.port),
(unsigned)host->z.hostFlags));
afsUUID_to_string(&chain->hostPtr->z.interface->uuid, uuid1,
127);
afsUUID_to_string(uuid, uuid2, 127);
- ViceLog(125, ("h_AddHostToUuidHashTable_r: host %" AFS_PTR_FMT " (uuid %s) exists as %s:%d (uuid %s)\n",
+ ViceLog(125, ("h_AddHostToUuidHashTable_r: host %p (uuid %s) exists as %s:%d (uuid %s)\n",
host, uuid1,
afs_inet_ntoa_r(chain->hostPtr->z.host, hoststr),
ntohs(chain->hostPtr->z.port), uuid2));
opr_Assert(uth->hostPtr);
if (uth->hostPtr == host) {
ViceLog(125,
- ("h_DeleteHostFromUuidHashTable_r: host %" AFS_PTR_FMT " (uuid %s %s:%d)\n",
+ ("h_DeleteHostFromUuidHashTable_r: host %p (uuid %s %s:%d)\n",
host, uuid1, afs_inet_ntoa_r(host->z.host, hoststr),
ntohs(host->z.port)));
*uhp = uth->next;
}
}
ViceLog(125,
- ("h_DeleteHostFromUuidHashTable_r: host %" AFS_PTR_FMT " (uuid %s %s:%d) not found\n",
+ ("h_DeleteHostFromUuidHashTable_r: host %p (uuid %s %s:%d) not found\n",
host, uuid1, afs_inet_ntoa_r(host->z.host, hoststr),
ntohs(host->z.port)));
return 0;
opr_Assert(host);
opr_Assert(host->z.interface);
- ViceLog(125, ("invalidateInterfaceAddr : host %" AFS_PTR_FMT " (%s:%d) addr %s:%d\n",
+ ViceLog(125, ("invalidateInterfaceAddr : host %p (%s:%d) addr %s:%d\n",
host, afs_inet_ntoa_r(host->z.host, hoststr),
ntohs(host->z.port), afs_inet_ntoa_r(addr, hoststr2),
ntohs(port)));
if (!host->z.interface || host->z.interface->numberOfInterfaces == 1) {
if (host->z.host == addr && host->z.port == port) {
ViceLog(25,
- ("Removing only address for host %" AFS_PTR_FMT " (%s:%d), deleting host.\n",
+ ("Removing only address for host %p (%s:%d), deleting host.\n",
host, afs_inet_ntoa_r(host->z.host, hoststr), ntohs(host->z.port)));
host->z.hostFlags |= HOSTDELETED;
/*
*/
} else {
ViceLog(0,
- ("Removing address that does not belong to host %" AFS_PTR_FMT " (%s:%d).\n",
+ ("Removing address that does not belong to host %p (%s:%d).\n",
host, afs_inet_ntoa_r(host->z.host, hoststr), ntohs(host->z.port)));
}
} else {
for (i=0; i < host->z.interface->numberOfInterfaces; i++) {
if (host->z.interface->interface[i].valid) {
ViceLog(25,
- ("Removed address for host %" AFS_PTR_FMT " (%s:%d), new primary interface %s:%d.\n",
+ ("Removed address for host %p (%s:%d), new primary interface %s:%d.\n",
host, afs_inet_ntoa_r(host->z.host, hoststr), ntohs(host->z.port),
afs_inet_ntoa_r(host->z.interface->interface[i].addr, hoststr2),
ntohs(host->z.interface->interface[i].port)));
if (i == host->z.interface->numberOfInterfaces) {
ViceLog(25,
- ("Removed only address for host %" AFS_PTR_FMT " (%s:%d), no valid alternate interfaces, deleting host.\n",
+ ("Removed only address for host %p (%s:%d), no valid alternate interfaces, deleting host.\n",
host, afs_inet_ntoa_r(host->z.host, hoststr), ntohs(host->z.port)));
host->z.hostFlags |= HOSTDELETED;
/* addr/port was removed from the hash table */
chain->addr = addr;
chain->port = port;
hostAddrHashTable[index] = chain;
- ViceLog(125, ("h_AddHostToAddrHashTable_r: host %" AFS_PTR_FMT " added as %s:%d\n",
+ ViceLog(125, ("h_AddHostToAddrHashTable_r: host %p added as %s:%d\n",
host, afs_inet_ntoa_r(addr, hoststr), ntohs(port)));
}
char hoststr[16];
ViceLog(125,
- ("reconcileHosts_r: addr %s:%d newHost %" AFS_PTR_FMT " oldHost %"
- AFS_PTR_FMT "\n", afs_inet_ntoa_r(addr, hoststr), ntohs(port),
+ ("reconcileHosts_r: addr %s:%d newHost %p oldHost %p\n",
+ afs_inet_ntoa_r(addr, hoststr), ntohs(port),
newHost, oldHost));
opr_Assert(oldHost != newHost);
if (chain->addr == addr && chain->port == port) {
if (chain->hostPtr == host) {
ViceLog(125,
- ("h_AddHostToAddrHashTable_r: host %" AFS_PTR_FMT " (%s:%d) already hashed\n",
+ ("h_AddHostToAddrHashTable_r: host %p (%s:%d) already hashed\n",
host, afs_inet_ntoa_r(chain->addr, hoststr),
ntohs(chain->port)));
return;
if (host->z.interface->interface[i].addr == addr &&
host->z.interface->interface[i].port == port) {
ViceLog(125,
- ("addInterfaceAddr : found host %" AFS_PTR_FMT " (%s:%d) adding %s:%d%s\n",
+ ("addInterfaceAddr : found host %p (%s:%d) adding %s:%d%s\n",
host, afs_inet_ntoa_r(host->z.host, hoststr),
ntohs(host->z.port), afs_inet_ntoa_r(addr, hoststr2),
ntohs(port), host->z.interface->interface[i].valid ? "" :
}
}
- ViceLog(125, ("addInterfaceAddr : host %" AFS_PTR_FMT " (%s:%d) adding %s:%d\n",
+ ViceLog(125, ("addInterfaceAddr : host %p (%s:%d) adding %s:%d\n",
host, afs_inet_ntoa_r(host->z.host, hoststr),
ntohs(host->z.port), afs_inet_ntoa_r(addr, hoststr2),
ntohs(port)));
opr_Assert(host);
opr_Assert(host->z.interface);
- ViceLog(125, ("removeInterfaceAddr : host %" AFS_PTR_FMT " (%s:%d) addr %s:%d\n",
+ ViceLog(125, ("removeInterfaceAddr : host %p (%s:%d) addr %s:%d\n",
host, afs_inet_ntoa_r(host->z.host, hoststr),
ntohs(host->z.port), afs_inet_ntoa_r(addr, hoststr2),
ntohs(port)));
* waited for the lock. */
h_Unlock_r(host);
ViceLog(125,
- ("Host %" AFS_PTR_FMT " (%s:%d) starting h_Lookup again\n",
+ ("Host %p (%s:%d) starting h_Lookup again\n",
host, afs_inet_ntoa_r(host->z.host, hoststr),
ntohs(host->z.port)));
h_Release_r(host);
* that we maintain some extra callback state information */
if (host->z.interface) {
ViceLog(0,
- ("Host %" AFS_PTR_FMT " (%s:%d) used to support WhoAreYou, deleting.\n",
+ ("Host %p (%s:%d) used to support WhoAreYou, deleting.\n",
host,
afs_inet_ntoa_r(host->z.host, hoststr),
ntohs(host->z.port)));
removeAddress_r(host, haddr, hport);
} else {
ViceLog(25,
- ("Uuid doesn't match host %" AFS_PTR_FMT " (%s:%d).\n",
+ ("Uuid doesn't match host %p (%s:%d).\n",
host, afs_inet_ntoa_r(host->z.host, hoststr), ntohs(host->z.port)));
removeAddress_r(host, host->z.host, host->z.port);
* callback connection, and destroy the old one.
*/
struct rx_connection *rxconn;
- ViceLog(0,("CB: ProbeUuid for host %" AFS_PTR_FMT " (%s:%d) failed %d\n",
+ ViceLog(0,("CB: ProbeUuid for host %p (%s:%d) failed %d\n",
host,
afs_inet_ntoa_r(host->z.host, hoststr),
ntohs(host->z.port),code2));
goto gethost_out;
} else {
ViceLog(0,
- ("CB: WhoAreYou failed for host %" AFS_PTR_FMT " (%s:%d), error %d\n",
+ ("CB: WhoAreYou failed for host %p (%s:%d), error %d\n",
host, afs_inet_ntoa_r(host->z.host, hoststr),
ntohs(host->z.port), code));
host->z.hostFlags |= VENUSDOWN;
if (!(host->z.hostFlags & ALTADDR)) {
/* another thread is doing the initialisation */
ViceLog(125,
- ("Host %" AFS_PTR_FMT " (%s:%d) waiting for host-init to complete\n",
+ ("Host %p (%s:%d) waiting for host-init to complete\n",
host, afs_inet_ntoa_r(host->z.host, hoststr),
ntohs(host->z.port)));
h_Lock_r(host);
h_Unlock_r(host);
ViceLog(125,
- ("Host %" AFS_PTR_FMT " (%s:%d) starting h_Lookup again\n",
+ ("Host %p (%s:%d) starting h_Lookup again\n",
host, afs_inet_ntoa_r(host->z.host, hoststr),
ntohs(host->z.port)));
h_Release_r(host);
if (!pident)
rx_SetSpecific(tcon, rxcon_ident_key, identP);
ViceLog(25,
- ("Host %" AFS_PTR_FMT " (%s:%d) does not support WhoAreYou.\n",
+ ("Host %p (%s:%d) does not support WhoAreYou.\n",
host, afs_inet_ntoa_r(host->z.host, hoststr),
ntohs(host->z.port)));
code = 0;
if (!pident)
rx_SetSpecific(tcon, rxcon_ident_key, identP);
ViceLog(25,
- ("WhoAreYou success on host %" AFS_PTR_FMT " (%s:%d)\n",
+ ("WhoAreYou success on host %p (%s:%d)\n",
host, afs_inet_ntoa_r(host->z.host, hoststr),
ntohs(host->z.port)));
}
* MultiProbeAlternateAddress_r() will remove the
* alternate interfaces that do not have the same
* Uuid. */
- ViceLog(0,("CB: ProbeUuid for host %" AFS_PTR_FMT " (%s:%d) failed %d\n",
+ ViceLog(0,("CB: ProbeUuid for host %p (%s:%d) failed %d\n",
oldHost,
afs_inet_ntoa_r(oldHost->z.host, hoststr),
ntohs(oldHost->z.port),code2));
struct rx_connection *rxconn;
ViceLog(25,
- ("CB: Host %" AFS_PTR_FMT " (%s:%d) has new addr %s:%d\n",
+ ("CB: Host %p (%s:%d) has new addr %s:%d\n",
oldHost,
afs_inet_ntoa_r(oldHost->z.host, hoststr2),
ntohs(oldHost->z.port),
H_LOCK;
if (code == 0) {
ViceLog(25,
- ("InitCallBackState3 success on host %" AFS_PTR_FMT " (%s:%d)\n",
+ ("InitCallBackState3 success on host %p (%s:%d)\n",
host, afs_inet_ntoa_r(host->z.host, hoststr),
ntohs(host->z.port)));
}
}
if (code) {
ViceLog(0,
- ("CB: RCallBackConnectBack failed for %" AFS_PTR_FMT " (%s:%d)\n",
+ ("CB: RCallBackConnectBack failed for %p (%s:%d)\n",
host, afs_inet_ntoa_r(host->z.host, hoststr), ntohs(host->z.port)));
host->z.hostFlags |= VENUSDOWN;
} else {
ViceLog(125,
- ("CB: RCallBackConnectBack succeeded for %" AFS_PTR_FMT " (%s:%d)\n",
+ ("CB: RCallBackConnectBack succeeded for %p (%s:%d)\n",
host, afs_inet_ntoa_r(host->z.host, hoststr), ntohs(host->z.port)));
host->z.hostFlags |= RESETDONE;
}
if (code) {
char hoststr[16];
ViceLog(0,
- ("pr_GetCPS failed(%d) for user %d, host %" AFS_PTR_FMT " (%s:%d)\n",
+ ("pr_GetCPS failed(%d) for user %d, host %p (%s:%d)\n",
code, viceid, client->z.host,
afs_inet_ntoa_r(client->z.host->z.host,hoststr),
ntohs(client->z.host->z.port)));
hp = &th->next) {
opr_Assert(th->hostPtr);
if (th->hostPtr == host && th->addr == addr && th->port == port) {
- ViceLog(125, ("h_DeleteHostFromAddrHashTable_r: host %" AFS_PTR_FMT " (%s:%d)\n",
+ ViceLog(125, ("h_DeleteHostFromAddrHashTable_r: host %p (%s:%d)\n",
host, afs_inet_ntoa_r(host->z.host, hoststr),
ntohs(host->z.port)));
*hp = th->next;
}
}
ViceLog(125,
- ("h_DeleteHostFromAddrHashTable_r: host %" AFS_PTR_FMT " (%s:%d) not found\n",
+ ("h_DeleteHostFromAddrHashTable_r: host %p (%s:%d) not found\n",
host, afs_inet_ntoa_r(host->z.host, hoststr),
ntohs(host->z.port)));
return 0;
goto done;
}
- printf("mapped %lu bytes at %"AFS_PTR_FMT"\n", (unsigned long)map_len, map);
+ printf("mapped %lu bytes at %p\n", (unsigned long)map_len, map);
done:
if (ret) {
do { \
char * _p = (char *)addr; \
char * _m = (char *)map; \
- printf("loading structure from address %"AFS_PTR_FMT" (offset %ld)\n", \
+ printf("loading structure from address %p (offset %ld)\n", \
addr, (long)(_p-_m)); \
} while (0)
} else if (rwinode) {
if (IH_INC(V_linkHandle(rwvp), rwinode, V_parentId(rwvp)) ==
-1) {
- Log("IH_INC failed: %"AFS_PTR_FMT", %s, %" AFS_VOLID_FMT " errno %d\n",
+ Log("IH_INC failed: %p, %s, %" AFS_VOLID_FMT " errno %d\n",
V_linkHandle(rwvp), PrintInode(stmp, rwinode),
afs_printable_VolumeId_lu(V_parentId(rwvp)), errno);
VForceOffline(rwvp);
if (inodeinced) {
if (IH_DEC(V_linkHandle(rwvp), rwinode, V_parentId(rwvp)) ==
-1) {
- Log("IH_DEC failed: %"AFS_PTR_FMT", %s, %" AFS_VOLID_FMT " errno %d\n",
+ Log("IH_DEC failed: %p, %s, %" AFS_VOLID_FMT " errno %d\n",
V_linkHandle(rwvp), PrintInode(stmp, rwinode),
afs_printable_VolumeId_lu(V_parentId(rwvp)), errno);
VForceOffline(rwvp);
if (ent != nent) {
ViceLog(0, ("_VVGC_hash_entry_add: tried to add a duplicate "
" nonmatching entry for vol %lu: original "
- "(%"AFS_PTR_FMT",%lu) new (%"AFS_PTR_FMT",%lu)\n",
+ "(%p,%lu) new (%p,%lu)\n",
afs_printable_uint32_lu(volid),
nent, afs_printable_uint32_lu(nent->rw),
ent, afs_printable_uint32_lu(ent->rw)));
if (parent_ent != child_ent) {
ViceLog(0,
("VVGCache_entry_del: trying to delete vol %lu from VG %lu, "
- "but vol %lu points to VGC entry %" AFS_PTR_FMT
- " and VG %lu " "points to VGC entry %" AFS_PTR_FMT "\n",
+ "but vol %lu points to VGC entry %p"
+ " and VG %lu " "points to VGC entry %p\n",
afs_printable_uint32_lu(child),
afs_printable_uint32_lu(parent),
afs_printable_uint32_lu(child), child_ent,
changed_oldTime) << 1) | vnp->
delete, 0, 0);
if (thisProcess != vnp->writer)
- Abort("VPutVnode: Vnode at %"AFS_PTR_FMT" locked by another process!\n",
+ Abort("VPutVnode: Vnode at %p locked by another process!\n",
vnp);
if (vnp->changed_newTime || vnp->changed_oldTime || vnp->delete)
Abort
("VPutVnode: Change or delete flag for vnode "
- "%"AFS_PTR_FMT" is set but vnode is not write locked!\n",
+ "%p is set but vnode is not write locked!\n",
vnp);
#ifdef AFS_DEMAND_ATTACH_FS
VnEndRead_r(vnp);
LWP_CurrentProcess(&thisProcess);
#endif /* AFS_PTHREAD_ENV */
if (thisProcess != vnp->writer)
- Abort("VPutVnode: Vnode at %"AFS_PTR_FMT
- " locked by another process!\n", vnp);
+ Abort("VPutVnode: Vnode at %p locked by another process!\n", vnp);
if (vnp->delete) {
return 0;
if (xstat_cm_debug) {
printf
- ("%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",
+ ("%s: Calling RXAFSCB_GetXStats, conn=%p, clientVersionNumber=%d, collectionNumber=%d, srvVersionNumberP=%p, timeP=%p, dataP=%p\n",
rn, curr_conn->rxconn, clientVersionNumber,
*currCollIDP, &srvVersionNumber,
&(xstat_cm_Results.probeTime),
&(xstat_cm_Results.data));
- printf("%s: [bufflen=%d, buffer at %" AFS_PTR_FMT "]\n", rn,
+ printf("%s: [bufflen=%d, buffer at %p]\n", rn,
xstat_cm_Results.data.AFSCB_CollData_len,
xstat_cm_Results.data.AFSCB_CollData_val);
}
conn_err = 1;
}
if (xstat_cm_debug)
- printf("[%s] New connection at %" AFS_PTR_FMT "\n", rn, curr_conn->rxconn);
+ printf("[%s] New connection at %p\n", rn, curr_conn->rxconn);
/*
* Bump the current xstat_cm connection to set up.
if (xstat_fs_debug) {
printf
- ("%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",
+ ("%s: Calling RXAFS_GetXStats, conn=%p, clientVersionNumber=%d, collectionNumber=%d, srvVersionNumberP=%p, timeP=%p, dataP=%p\n",
rn, curr_conn->rxconn, clientVersionNumber,
*currCollIDP, &srvVersionNumber,
&(xstat_fs_Results.probeTime),
&(xstat_fs_Results.data));
- printf("%s: [bufflen=%d, buffer at %" AFS_PTR_FMT "]\n", rn,
+ printf("%s: [bufflen=%d, buffer at %p]\n", rn,
xstat_fs_Results.data.AFS_CollData_len,
xstat_fs_Results.data.AFS_CollData_val);
}
conn_err = 1;
}
if (xstat_fs_debug)
- printf("[%s] New connection at %" AFS_PTR_FMT "\n", rn, curr_conn->rxconn);
+ printf("[%s] New connection at %p\n", rn, curr_conn->rxconn);
/*
* Bump the current xstat_fs connection to set up.
printableTime);
if (debugging_on)
- printf("\n[%u entries returned at %" AFS_PTR_FMT "]\n\n", numInt32s, currInt32);
+ printf("\n[%u entries returned at %p]\n\n", numInt32s, currInt32);
for (i = 0; i < numInt32s; i++)
printf("%u ", *currInt32++);