diff options
author | Ian Dowse <iedowse@FreeBSD.org> | 2004-11-28 20:36:19 +0000 |
---|---|---|
committer | Ian Dowse <iedowse@FreeBSD.org> | 2004-11-28 20:36:19 +0000 |
commit | 5fc01b4e250909faea1cfbfcefe9cabc8cd7f1da (patch) | |
tree | 4b659583e289fb1851a9e9a62ab895e3ef3940b7 /usr.sbin/usbd | |
parent | b96e102ae23289e18d27a042049a4161612b59f0 (diff) | |
download | src-5fc01b4e250909faea1cfbfcefe9cabc8cd7f1da.tar.gz src-5fc01b4e250909faea1cfbfcefe9cabc8cd7f1da.zip |
Fix a few coding errors that caused compiler warnings.
PR: bin/71615
Submitted by: Craig Rodrigues (original patch by Dan Lukes)
Notes
Notes:
svn path=/head/; revision=138168
Diffstat (limited to 'usr.sbin/usbd')
-rw-r--r-- | usr.sbin/usbd/usbd.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.sbin/usbd/usbd.c b/usr.sbin/usbd/usbd.c index 5cc2518f0eea..3cd08a105343 100644 --- a/usr.sbin/usbd/usbd.c +++ b/usr.sbin/usbd/usbd.c @@ -54,6 +54,7 @@ #include <ctype.h> #include <signal.h> #include <paths.h> +#include <stdint.h> #include <sys/param.h> #include <sys/types.h> #include <sys/errno.h> @@ -583,8 +584,8 @@ print_event(struct usb_event *event) event->ue_type == USB_EVENT_DEVICE_DETACH) { devinfo = &event->u.ue_device; - printf(" at %ld.%09ld, %s, %s:\n", - timespec->tv_sec, timespec->tv_nsec, + printf(" at %jd.%09ld, %s, %s:\n", + (intmax_t)timespec->tv_sec, timespec->tv_nsec, devinfo->udi_product, devinfo->udi_vendor); printf(" vndr=0x%04x prdct=0x%04x rlse=0x%04x " @@ -607,12 +608,12 @@ print_event(struct usb_event *event) } } else if (event->ue_type == USB_EVENT_CTRLR_ATTACH || event->ue_type == USB_EVENT_CTRLR_DETACH) { - printf(" bus=%d", &event->u.ue_ctrlr.ue_bus); + printf(" bus=%d", event->u.ue_ctrlr.ue_bus); } else if (event->ue_type == USB_EVENT_DRIVER_ATTACH || event->ue_type == USB_EVENT_DRIVER_DETACH) { printf(" cookie=%u devname=%s", - &event->u.ue_driver.ue_cookie.cookie, - &event->u.ue_driver.ue_devname); + event->u.ue_driver.ue_cookie.cookie, + event->u.ue_driver.ue_devname); } printf("\n"); } |