diff options
author | peter <peter@FreeBSD.org> | 2003-07-22 06:58:04 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-07-22 06:58:04 +0000 |
commit | 3357be8cacb0ba59394c8bef696b91d8ce1938ca (patch) | |
tree | 6edc83c49abec6c00dc958ee780b24be21895796 /sys | |
parent | 27c163f9f7cccc6f021745cafe4b2098452de387 (diff) | |
download | FreeBSD-src-3357be8cacb0ba59394c8bef696b91d8ce1938ca.zip FreeBSD-src-3357be8cacb0ba59394c8bef696b91d8ce1938ca.tar.gz |
Fix a 64 bit bug lost in the inline warning noise. sizeof is not always
an int. Do not printf() it as though it were.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/usb_mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_mem.c b/sys/dev/usb/usb_mem.c index ea838d9..143ce2e 100644 --- a/sys/dev/usb/usb_mem.c +++ b/sys/dev/usb/usb_mem.c @@ -258,7 +258,7 @@ usb_allocmem(usbd_bus_handle bus, size_t size, size_t align, usb_dma_t *p) b->fullblock = 0; /* XXX - override the tag, ok since we never free it */ b->tag = tag; - KASSERT(sizeof *f <= USB_MEM_SMALL, ("USB_MEM_SMALL(%d) is too small for struct usb_frag_dma(%d)\n", + KASSERT(sizeof *f <= USB_MEM_SMALL, ("USB_MEM_SMALL(%d) is too small for struct usb_frag_dma(%zd)\n", USB_MEM_SMALL, sizeof *f)); for (i = 0; i < USB_MEM_BLOCK; i += USB_MEM_SMALL) { f = (struct usb_frag_dma *)((char *)b->kaddr + i); |