Fix format warnings on 64bit machines

This commit is contained in:
Jeremy Lakeman 2013-08-26 11:54:46 +09:30
parent 65cc17b7e1
commit f2e7391672
3 changed files with 3 additions and 3 deletions

View File

@ -1948,7 +1948,7 @@ int app_byteorder_test(const struct cli_parsed *parsed, struct cli_context *cont
write_uint64(&bytes[0],in); write_uint64(&bytes[0],in);
out=read_uint64(&bytes[0]); out=read_uint64(&bytes[0]);
if (in!=out) if (in!=out)
cli_printf(context,"Byte order mangled (0x%016llx should have been %016llx)\n", cli_printf(context,"Byte order mangled (0x%016"PRIx64" should have been %016"PRIx64")\n",
out,in); out,in);
else cli_printf(context,"Byte order preserved.\n"); else cli_printf(context,"Byte order preserved.\n");
return -1; return -1;

View File

@ -145,7 +145,7 @@ int overlay_mdp_service_rhizomeresponse(overlay_mdp_frame *mdp)
unsigned char *bytes=&mdp->out.payload[1+16+8+8]; unsigned char *bytes=&mdp->out.payload[1+16+8+8];
if (config.debug.rhizome_mdp_rx) if (config.debug.rhizome_mdp_rx)
DEBUGF("bidprefix=%02x%02x%02x%02x*, offset=%lld, count=%d", DEBUGF("bidprefix=%02x%02x%02x%02x*, offset=%"PRId64", count=%d",
bidprefix[0],bidprefix[1],bidprefix[2],bidprefix[3],offset,count); bidprefix[0],bidprefix[1],bidprefix[2],bidprefix[3],offset,count);
/* Now see if there is a slot that matches. If so, then /* Now see if there is a slot that matches. If so, then

View File

@ -1370,7 +1370,7 @@ int rhizome_received_content(unsigned char *bidprefix,
RETURN(0); RETURN(0);
} else { } else {
if (config.debug.rhizome) if (config.debug.rhizome)
DEBUGF("Ignoring received block: slot=%p, version=%016llx, slot->bidVersion=%016llx, slot->state=%d (should be %d)", DEBUGF("Ignoring received block: slot=%p, version=%016"PRIx64", slot->bidVersion=%016"PRIx64", slot->state=%d (should be %d)",
slot,version,slot?slot->bidVersion:0,slot?slot->state:-999,RHIZOME_FETCH_RXFILEMDP); slot,version,slot?slot->bidVersion:0,slot?slot->state:-999,RHIZOME_FETCH_RXFILEMDP);
} }