In libexec/rbootd/utils.c, use the correct printf length modifiers for
u_int32_t and size_t. MFC after: 1 week
This commit is contained in:
parent
789732b939
commit
2f3739b852
|
@ -82,8 +82,8 @@ static const char rcsid[] =
|
||||||
void
|
void
|
||||||
DispPkt(RMPCONN *rconn, int direct)
|
DispPkt(RMPCONN *rconn, int direct)
|
||||||
{
|
{
|
||||||
static const char BootFmt[] = "\t\tRetCode:%u SeqNo:%lx SessID:%x Vers:%u";
|
static const char BootFmt[] = "\t\tRetCode:%u SeqNo:%x SessID:%x Vers:%u";
|
||||||
static const char ReadFmt[] = "\t\tRetCode:%u Offset:%lx SessID:%x\n";
|
static const char ReadFmt[] = "\t\tRetCode:%u Offset:%x SessID:%x\n";
|
||||||
|
|
||||||
struct tm *tmp;
|
struct tm *tmp;
|
||||||
struct rmp_packet *rmp;
|
struct rmp_packet *rmp;
|
||||||
|
@ -166,7 +166,7 @@ DispPkt(RMPCONN *rconn, int direct)
|
||||||
GETWORD(rmp->r_rrpl.rmp_offset, t);
|
GETWORD(rmp->r_rrpl.rmp_offset, t);
|
||||||
(void) fprintf(DbgFp, ReadFmt, rmp->r_rrpl.rmp_retcode,
|
(void) fprintf(DbgFp, ReadFmt, rmp->r_rrpl.rmp_retcode,
|
||||||
t, ntohs(rmp->r_rrpl.rmp_session));
|
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));
|
rconn->rmplen - RMPREADSIZE(0));
|
||||||
break;
|
break;
|
||||||
case RMP_BOOT_DONE: /* boot complete */
|
case RMP_BOOT_DONE: /* boot complete */
|
||||||
|
|
Loading…
Reference in New Issue