summaryrefslogtreecommitdiff
path: root/drivers/usb/usbdcore.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-07-13 19:51:00 +0200
committerWolfgang Denk <wd@denx.de>2008-07-13 19:51:00 +0200
commitd5996dd555edf52721b7691a4c59de016251ed39 (patch)
treeb22b9dceee9d79106c4bb19bc115121d33da0d82 /drivers/usb/usbdcore.c
parent0f9d5f6d6e814907794995c6a22af752040c35d9 (diff)
downloadu-boot-imx-d5996dd555edf52721b7691a4c59de016251ed39.zip
u-boot-imx-d5996dd555edf52721b7691a4c59de016251ed39.tar.gz
u-boot-imx-d5996dd555edf52721b7691a4c59de016251ed39.tar.bz2
Fix some more printf() format problems.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'drivers/usb/usbdcore.c')
-rw-r--r--drivers/usb/usbdcore.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/drivers/usb/usbdcore.c b/drivers/usb/usbdcore.c
index 58e710f..808da9f 100644
--- a/drivers/usb/usbdcore.c
+++ b/drivers/usb/usbdcore.c
@@ -546,21 +546,23 @@ void urb_append (urb_link * hd, struct urb *urb)
*
* NOTE: endpoint_address MUST contain a direction flag.
*/
-struct urb *usbd_alloc_urb (struct usb_device_instance *device, struct usb_endpoint_instance *endpoint)
+struct urb *usbd_alloc_urb (struct usb_device_instance *device,
+ struct usb_endpoint_instance *endpoint)
{
struct urb *urb;
- if( !(urb = (struct urb*)malloc(sizeof(struct urb))) ) {
- usberr(" F A T A L: malloc(%lu) FAILED!!!!", sizeof(struct urb));
- return NULL;
+ if (!(urb = (struct urb *) malloc (sizeof (struct urb)))) {
+ usberr (" F A T A L: malloc(%u) FAILED!!!!",
+ sizeof (struct urb));
+ return NULL;
}
/* Fill in known fields */
- memset(urb, 0, sizeof(struct urb));
+ memset (urb, 0, sizeof (struct urb));
urb->endpoint = endpoint;
urb->device = device;
- urb->buffer = (u8*)urb->buffer_data;
- urb->buffer_length = sizeof(urb->buffer_data);
+ urb->buffer = (u8 *) urb->buffer_data;
+ urb->buffer_length = sizeof (urb->buffer_data);
urb_link_init (&urb->link);