diff --git a/sys/dev/twa/twa.c b/sys/dev/twa/twa.c index 09f151c8192..fd540a70f1a 100644 --- a/sys/dev/twa/twa.c +++ b/sys/dev/twa/twa.c @@ -2050,7 +2050,7 @@ twa_enqueue_aen(struct twa_softc *sc, struct twa_command_header *cmd_hdr) event->parameter_len, event->parameter_data); - twa_dbg_dprint(4, sc, "cmd_hdr = %x %lx %x %x %x %x %x\n %s", + twa_dbg_dprint(4, sc, "cmd_hdr = %x %lx %x %x %x %x %zx\n %s", sc->twa_current_sequence_id, local_time, cmd_hdr->status_block.error, diff --git a/sys/dev/twa/twa_freebsd.c b/sys/dev/twa/twa_freebsd.c index f963f97ca25..9879448f944 100644 --- a/sys/dev/twa/twa_freebsd.c +++ b/sys/dev/twa/twa_freebsd.c @@ -993,7 +993,7 @@ twa_print_request(struct twa_request *tr, int req_type) if (tr->tr_cmd_pkt_type & TWA_CMD_PKT_TYPE_9K) { cmd9k = &(cmdpkt->command.cmd_pkt_9k); cmd_phys_addr = cmd9k->sg_list[0].address; - twa_printf(sc, "9K cmd = %x %x %x %x %x %x %x %x %x\n", + twa_printf(sc, "9K cmd = %x %x %x %x %x %x %x %x %jx\n", cmd9k->command.opcode, cmd9k->command.reserved, cmd9k->unit, @@ -1002,7 +1002,7 @@ twa_print_request(struct twa_request *tr, int req_type) cmd9k->sgl_offset, cmd9k->sgl_entries, cmd_phys_addr, - cmd9k->sg_list[0].length); + (uintmax_t)cmd9k->sg_list[0].length); cdb = (u_int8_t *)(cmdpkt->command.cmd_pkt_9k.cdb); twa_printf(sc, "cdb = %x %x %x %x %x %x %x %x %x %x %x %x %x %x %x %x\n", cdb[0], cdb[1], cdb[2], cdb[3], cdb[4], cdb[5], cdb[6], cdb[7], @@ -1022,8 +1022,8 @@ twa_print_request(struct twa_request *tr, int req_type) } cmd_phys_addr = (int)(tr->tr_cmd_phys); - twa_printf(sc, "cmdphys=0x%x data=%p length=0x%x\n", - cmd_phys_addr, tr->tr_data, tr->tr_length); + twa_printf(sc, "cmdphys=0x%x data=%p length=0x%jx\n", + cmd_phys_addr, tr->tr_data, (uintmax_t)tr->tr_length); twa_printf(sc, "req_id=0x%x flags=0x%x callback=%p private=%p\n", tr->tr_request_id, tr->tr_flags, tr->tr_callback, tr->tr_private); diff --git a/sys/dev/twa/twa_includes.h b/sys/dev/twa/twa_includes.h index 0e2d15a6db9..0dfdab87d1e 100644 --- a/sys/dev/twa/twa_includes.h +++ b/sys/dev/twa/twa_includes.h @@ -35,6 +35,7 @@ #include #include +#include #include #include #include