Commit c78059f0 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

V4L/DVB (4263): Fix warning when compiling on 64 bit machines

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent ce4260c3
...@@ -176,7 +176,7 @@ static int pvr2_encoder_cmd(void *ctxt, ...@@ -176,7 +176,7 @@ static int pvr2_encoder_cmd(void *ctxt,
" - too many input arguments" " - too many input arguments"
" (was given %u limit %u)", " (was given %u limit %u)",
arg_cnt_send, arg_cnt_send,
(sizeof(wrData)/sizeof(wrData[0])) - 4); (unsigned int)(sizeof(wrData)/sizeof(wrData[0])) - 4);
return -EINVAL; return -EINVAL;
} }
...@@ -187,7 +187,7 @@ static int pvr2_encoder_cmd(void *ctxt, ...@@ -187,7 +187,7 @@ static int pvr2_encoder_cmd(void *ctxt,
" - too many return arguments" " - too many return arguments"
" (was given %u limit %u)", " (was given %u limit %u)",
arg_cnt_recv, arg_cnt_recv,
(sizeof(rdData)/sizeof(rdData[0])) - 4); (unsigned int)(sizeof(rdData)/sizeof(rdData[0])) - 4);
return -EINVAL; return -EINVAL;
} }
...@@ -275,7 +275,7 @@ static int pvr2_encoder_vcmd(struct pvr2_hdw *hdw, int cmd, ...@@ -275,7 +275,7 @@ static int pvr2_encoder_vcmd(struct pvr2_hdw *hdw, int cmd,
"Failed to write cx23416 command" "Failed to write cx23416 command"
" - too many arguments" " - too many arguments"
" (was given %u limit %u)", " (was given %u limit %u)",
args,sizeof(data)/sizeof(data[0])); args,(unsigned int)(sizeof(data)/sizeof(data[0])));
return -EINVAL; return -EINVAL;
} }
......
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