bus_size_t is a bad cross-architectural type with respect to printf, use uint32_t instead

This commit is contained in:
kmacy 2007-03-24 04:28:33 +00:00
parent 4fa4b823d2
commit 758c270b77
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

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