bus_size_t is a bad cross-architectural type with respect to printf, use uint32_t instead
This commit is contained in:
parent
4fa4b823d2
commit
758c270b77
@ -244,7 +244,7 @@ struct adapter {
|
||||
bus_space_handle_t bh;
|
||||
bus_space_tag_t bt;
|
||||
bus_size_t mmio_len;
|
||||
bus_size_t link_width;
|
||||
uint32_t link_width;
|
||||
|
||||
/* DMA resources */
|
||||
bus_dma_tag_t parent_dmat;
|
||||
|
@ -322,7 +322,7 @@ cxgb_controller_attach(device_t dev)
|
||||
}
|
||||
if (sc->link_width != 0 && sc->link_width <= 4) {
|
||||
device_printf(sc->dev,
|
||||
"PCIe x%ld Link, expect reduced performance\n",
|
||||
"PCIe x%d Link, expect reduced performance\n",
|
||||
sc->link_width);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user