diff options
author | dim <dim@FreeBSD.org> | 2011-12-16 16:29:51 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-12-16 16:29:51 +0000 |
commit | 9be38353d1944782fd993b22c9bd651c6738ab20 (patch) | |
tree | 958485c887a0c26d4a3f75d2c20a811da3e6e8f5 /libexec/rbootd | |
parent | 66612dcd94cd804ecbbf6aeb2dc098e5ba04213b (diff) | |
download | FreeBSD-src-9be38353d1944782fd993b22c9bd651c6738ab20.zip FreeBSD-src-9be38353d1944782fd993b22c9bd651c6738ab20.tar.gz |
In libexec/rbootd/utils.c, use the correct printf length modifiers for
u_int32_t and size_t.
MFC after: 1 week
Diffstat (limited to 'libexec/rbootd')
-rw-r--r-- | libexec/rbootd/utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/rbootd/utils.c b/libexec/rbootd/utils.c index 138bc4c..d13f123 100644 --- a/libexec/rbootd/utils.c +++ b/libexec/rbootd/utils.c @@ -82,8 +82,8 @@ static const char rcsid[] = void DispPkt(RMPCONN *rconn, int direct) { - static const char BootFmt[] = "\t\tRetCode:%u SeqNo:%lx SessID:%x Vers:%u"; - static const char ReadFmt[] = "\t\tRetCode:%u Offset:%lx SessID:%x\n"; + static const char BootFmt[] = "\t\tRetCode:%u SeqNo:%x SessID:%x Vers:%u"; + static const char ReadFmt[] = "\t\tRetCode:%u Offset:%x SessID:%x\n"; struct tm *tmp; struct rmp_packet *rmp; @@ -166,7 +166,7 @@ DispPkt(RMPCONN *rconn, int direct) GETWORD(rmp->r_rrpl.rmp_offset, t); (void) fprintf(DbgFp, ReadFmt, rmp->r_rrpl.rmp_retcode, t, ntohs(rmp->r_rrpl.rmp_session)); - (void) fprintf(DbgFp, "\t\tNoOfBytesSent: %d\n", + (void) fprintf(DbgFp, "\t\tNoOfBytesSent: %zu\n", rconn->rmplen - RMPREADSIZE(0)); break; case RMP_BOOT_DONE: /* boot complete */ |