V4L/DVB (4263): Fix warning when compiling on 64 bit machines
authorMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 27 Jun 2006 03:03:43 +0000 (00:03 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 27 Jun 2006 03:17:43 +0000 (00:17 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pvrusb2/pvrusb2-encoder.c

index d944081072e6b71e1b5cc00828d7e5025d12214c..2cc31695b435cadfc9053a0e4d97a77d5274e217 100644 (file)
@@ -176,7 +176,7 @@ static int pvr2_encoder_cmd(void *ctxt,
                        " - too many input arguments"
                        " (was given %u limit %u)",
                        arg_cnt_send,
-                       (sizeof(wrData)/sizeof(wrData[0])) - 4);
+                       (unsigned int)(sizeof(wrData)/sizeof(wrData[0])) - 4);
                return -EINVAL;
        }
 
@@ -187,7 +187,7 @@ static int pvr2_encoder_cmd(void *ctxt,
                        " - too many return arguments"
                        " (was given %u limit %u)",
                        arg_cnt_recv,
-                       (sizeof(rdData)/sizeof(rdData[0])) - 4);
+                       (unsigned int)(sizeof(rdData)/sizeof(rdData[0])) - 4);
                return -EINVAL;
        }
 
@@ -275,7 +275,7 @@ static int pvr2_encoder_vcmd(struct pvr2_hdw *hdw, int cmd,
                        "Failed to write cx23416 command"
                        " - too many arguments"
                        " (was given %u limit %u)",
-                       args,sizeof(data)/sizeof(data[0]));
+                       args,(unsigned int)(sizeof(data)/sizeof(data[0])));
                return -EINVAL;
        }