summaryrefslogtreecommitdiff
path: root/sys/dev/pv/hyperv.c
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2016-08-08 16:39:07 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2016-08-08 16:39:07 +0000
commitbe031caa7e3ea53802438ed14a669d36212ea0fc (patch)
treeb12dd08c419574648368235f433b04af303ca8c1 /sys/dev/pv/hyperv.c
parent0de7af048e0988b90e7cacf838cde373720e752f (diff)
Fixup incorrect format specification bugs spotted by jsg@
Diffstat (limited to 'sys/dev/pv/hyperv.c')
-rw-r--r--sys/dev/pv/hyperv.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pv/hyperv.c b/sys/dev/pv/hyperv.c
index 7a8e22cca19..b6e5c55abcd 100644
--- a/sys/dev/pv/hyperv.c
+++ b/sys/dev/pv/hyperv.c
@@ -397,7 +397,7 @@ hv_cmd(struct hv_softc *sc, void *cmd, size_t cmdlen, void *rsp,
int rv;
if (cmdlen > HV_MESSAGE_PAYLOAD) {
- printf("%s: payload too large (%ld)\n", sc->sc_dev.dv_xname,
+ printf("%s: payload too large (%lu)\n", sc->sc_dev.dv_xname,
cmdlen);
return (EMSGSIZE);
}
@@ -569,12 +569,12 @@ hv_event_intr(struct hv_softc *sc)
continue;
ch = hv_channel_lookup(sc, relid);
if (ch == NULL) {
- printf("%s: unhandled event on %u\n",
+ printf("%s: unhandled event on %d\n",
sc->sc_dev.dv_xname, relid);
continue;
}
if (ch->ch_state != HV_CHANSTATE_OPENED) {
- printf("%s: channel %u is not active\n",
+ printf("%s: channel %d is not active\n",
sc->sc_dev.dv_xname, relid);
continue;
}
@@ -601,7 +601,7 @@ hv_message_intr(struct hv_softc *sc)
hdr = (struct hv_channel_msg_header *)msg->payload;
if (hdr->message_type >= HV_CHANMSG_COUNT) {
- printf("%s: unhandled message type %d flags %#x\n",
+ printf("%s: unhandled message type %u flags %#x\n",
sc->sc_dev.dv_xname, hdr->message_type,
msg->header.message_flags);
goto skip;
@@ -609,7 +609,7 @@ hv_message_intr(struct hv_softc *sc)
if (hv_msg_dispatch[hdr->message_type].hmd_handler)
hv_msg_dispatch[hdr->message_type].hmd_handler(sc, hdr);
else
- printf("%s: unhandled message type %d\n",
+ printf("%s: unhandled message type %u\n",
sc->sc_dev.dv_xname, hdr->message_type);
skip:
msg->header.message_type = HV_MESSAGE_TYPE_NONE;