Commit 8709c2e3 authored by David S. Miller's avatar David S. Miller

[MEDIA]: Use '%z' printf format for size_t/ptrdiff_t types in w9968cf.c.

parent 1e4e4da7
...@@ -820,7 +820,7 @@ static void w9968cf_urb_complete(struct urb *urb, struct pt_regs *regs) ...@@ -820,7 +820,7 @@ static void w9968cf_urb_complete(struct urb *urb, struct pt_regs *regs)
(*f)->length = cam->frame_tmp.length; (*f)->length = cam->frame_tmp.length;
memcpy((*f)->buffer, cam->frame_tmp.buffer, memcpy((*f)->buffer, cam->frame_tmp.buffer,
(*f)->length); (*f)->length);
DBG(6, "Switched from temp. frame to frame #%d", DBG(6, "Switched from temp. frame to frame #%zd",
(*f) - &cam->frame[0]) (*f) - &cam->frame[0])
} }
} }
...@@ -858,7 +858,7 @@ static void w9968cf_urb_complete(struct urb *urb, struct pt_regs *regs) ...@@ -858,7 +858,7 @@ static void w9968cf_urb_complete(struct urb *urb, struct pt_regs *regs)
} else if ((*f)->status == F_GRABBING) { /* end of frame */ } else if ((*f)->status == F_GRABBING) { /* end of frame */
DBG(6, "Frame #%d successfully grabbed.", DBG(6, "Frame #%zd successfully grabbed.",
((*f)==&cam->frame_tmp ? -1 : (*f)-&cam->frame[0])) ((*f)==&cam->frame_tmp ? -1 : (*f)-&cam->frame[0]))
if (cam->vpp_flag & VPP_DECOMPRESSION) { if (cam->vpp_flag & VPP_DECOMPRESSION) {
...@@ -2075,7 +2075,7 @@ w9968cf_pop_frame(struct w9968cf_device* cam, struct w9968cf_frame_t** framep) ...@@ -2075,7 +2075,7 @@ w9968cf_pop_frame(struct w9968cf_device* cam, struct w9968cf_frame_t** framep)
spin_unlock(&cam->flist_lock); spin_unlock(&cam->flist_lock);
DBG(6,"Popped frame #%d from the list.",*framep-&cam->frame[0]) DBG(6,"Popped frame #%zd from the list.",*framep-&cam->frame[0])
} }
...@@ -2830,7 +2830,7 @@ w9968cf_read(struct file* filp, char* buf, size_t count, loff_t* f_pos) ...@@ -2830,7 +2830,7 @@ w9968cf_read(struct file* filp, char* buf, size_t count, loff_t* f_pos)
fr->status = F_UNUSED; fr->status = F_UNUSED;
DBG(5, "%d bytes read.", count) DBG(5, "%zd bytes read.", count)
up(&cam->fileop_sem); up(&cam->fileop_sem);
return count; return count;
...@@ -3506,7 +3506,7 @@ w9968cf_usb_probe(struct usb_interface* intf, const struct usb_device_id* id) ...@@ -3506,7 +3506,7 @@ w9968cf_usb_probe(struct usb_interface* intf, const struct usb_device_id* id)
kmalloc(sizeof(struct w9968cf_device), GFP_KERNEL); kmalloc(sizeof(struct w9968cf_device), GFP_KERNEL);
if (!cam) { if (!cam) {
DBG(1, "Couldn't allocate %d bytes of kernel memory.", DBG(1, "Couldn't allocate %zd bytes of kernel memory.",
sizeof(struct w9968cf_device)) sizeof(struct w9968cf_device))
err = -ENOMEM; err = -ENOMEM;
goto fail; goto fail;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment