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);
}
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;
}
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;
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;