Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
8709c2e3
Commit
8709c2e3
authored
Feb 19, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MEDIA]: Use '%z' printf format for size_t/ptrdiff_t types in w9968cf.c.
parent
1e4e4da7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/usb/media/w9968cf.c
drivers/usb/media/w9968cf.c
+5
-5
No files found.
drivers/usb/media/w9968cf.c
View file @
8709c2e3
...
@@ -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 #%
z
d"
,
(
*
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 #%
z
d 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 #%
z
d 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
,
"%
z
d 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 %
z
d bytes of kernel memory."
,
sizeof
(
struct
w9968cf_device
))
sizeof
(
struct
w9968cf_device
))
err
=
-
ENOMEM
;
err
=
-
ENOMEM
;
goto
fail
;
goto
fail
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment