mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
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
This commit is contained in:
parent
34b678a695
commit
4cdc9a643e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127746
@ -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,
|
||||
|
@ -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);
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user