media: gspca: Convert PERR to gspca_err
Use a more typical kernel logging style. The current macro hides the gspca_dev argument so add it to the macro uses instead. Miscellanea: o Add missing '\n' terminations to formats o Realign arguments to open parenthesis Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
6e298d5847
commit
52173c5f3f
@@ -180,9 +180,9 @@ static void sd_isoc_irq(struct urb *urb)
|
||||
/* check the packet status and length */
|
||||
if (urb0->iso_frame_desc[i].actual_length != SD_PKT_SZ
|
||||
|| urb->iso_frame_desc[i].actual_length != SD_PKT_SZ) {
|
||||
PERR("ISOC bad lengths %d / %d",
|
||||
urb0->iso_frame_desc[i].actual_length,
|
||||
urb->iso_frame_desc[i].actual_length);
|
||||
gspca_err(gspca_dev, "ISOC bad lengths %d / %d\n",
|
||||
urb0->iso_frame_desc[i].actual_length,
|
||||
urb->iso_frame_desc[i].actual_length);
|
||||
gspca_dev->last_packet_type = DISCARD_PACKET;
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user