Commit 61fc8749 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] ttusb_dec: use KERNEL_CONT where needed

Some continuation messages are not using KERNEL_CONT.

Since commit 56387331 ("Merge branch 'printk-cleanups"),
this won't work as expected anymore. So, let's add KERN_CONT
to those lines.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 6dc3a355
...@@ -329,7 +329,7 @@ static int ttusb_dec_send_command(struct ttusb_dec *dec, const u8 command, ...@@ -329,7 +329,7 @@ static int ttusb_dec_send_command(struct ttusb_dec *dec, const u8 command,
int param_length, const u8 params[], int param_length, const u8 params[],
int *result_length, u8 cmd_result[]) int *result_length, u8 cmd_result[])
{ {
int result, actual_len, i; int result, actual_len;
u8 *b; u8 *b;
dprintk("%s\n", __func__); dprintk("%s\n", __func__);
...@@ -353,10 +353,8 @@ static int ttusb_dec_send_command(struct ttusb_dec *dec, const u8 command, ...@@ -353,10 +353,8 @@ static int ttusb_dec_send_command(struct ttusb_dec *dec, const u8 command,
memcpy(&b[4], params, param_length); memcpy(&b[4], params, param_length);
if (debug) { if (debug) {
printk("%s: command: ", __func__); printk(KERN_DEBUG "%s: command: %*ph\n",
for (i = 0; i < param_length + 4; i++) __func__, param_length, b);
printk("0x%02X ", b[i]);
printk("\n");
} }
result = usb_bulk_msg(dec->udev, dec->command_pipe, b, result = usb_bulk_msg(dec->udev, dec->command_pipe, b,
...@@ -381,10 +379,8 @@ static int ttusb_dec_send_command(struct ttusb_dec *dec, const u8 command, ...@@ -381,10 +379,8 @@ static int ttusb_dec_send_command(struct ttusb_dec *dec, const u8 command,
return result; return result;
} else { } else {
if (debug) { if (debug) {
printk("%s: result: ", __func__); printk(KERN_DEBUG "%s: result: %*ph\n",
for (i = 0; i < actual_len; i++) __func__, actual_len, b);
printk("0x%02X ", b[i]);
printk("\n");
} }
if (result_length) if (result_length)
......
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