diff options
author | des <des@FreeBSD.org> | 2004-04-02 15:09:57 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2004-04-02 15:09:57 +0000 |
commit | 6525acc5b42eeca4a6f813806edd5489711353d2 (patch) | |
tree | 3323731eb1eff4f14fc245f187cc8a4803ef05fa /sys/dev | |
parent | 9edf249385680cf50614a832e16825e82047a0fd (diff) | |
download | FreeBSD-src-6525acc5b42eeca4a6f813806edd5489711353d2.zip FreeBSD-src-6525acc5b42eeca4a6f813806edd5489711353d2.tar.gz |
Unbreak LINT on 64-bit platforms. Note that this code is not style(9)-
compliant, but I'll leave that for someone else.
Noticed by: tinderbox
Pointy hat to: the usual suspects
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/twa/twa.c | 2 | ||||
-rw-r--r-- | sys/dev/twa/twa_freebsd.c | 8 | ||||
-rw-r--r-- | sys/dev/twa/twa_includes.h | 1 |
3 files changed, 6 insertions, 5 deletions
diff --git a/sys/dev/twa/twa.c b/sys/dev/twa/twa.c index 09f151c..fd540a7 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 f963f97..9879448 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 0e2d15a..0dfdab8 100644 --- a/sys/dev/twa/twa_includes.h +++ b/sys/dev/twa/twa_includes.h @@ -35,6 +35,7 @@ #include <sys/param.h> #include <sys/systm.h> +#include <sys/libkern.h> #include <sys/malloc.h> #include <sys/kernel.h> #include <sys/sysctl.h> |