Commit c7c78067 authored by Peter Chen's avatar Peter Chen Committed by Greg Kroah-Hartman

usb: misc: usbtest: improve the description for error message

Now the function of complicated_callback is not only used for iso
transfer, improve the error message to reflect it.
Signed-off-by: default avatarPeter Chen <peter.chen@freescale.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 144e38c6
...@@ -1849,7 +1849,7 @@ static void complicated_callback(struct urb *urb) ...@@ -1849,7 +1849,7 @@ static void complicated_callback(struct urb *urb)
goto done; goto done;
default: default:
dev_err(&ctx->dev->intf->dev, dev_err(&ctx->dev->intf->dev,
"iso resubmit err %d\n", "resubmit err %d\n",
status); status);
/* FALLTHROUGH */ /* FALLTHROUGH */
case -ENODEV: /* disconnected */ case -ENODEV: /* disconnected */
...@@ -1863,7 +1863,7 @@ static void complicated_callback(struct urb *urb) ...@@ -1863,7 +1863,7 @@ static void complicated_callback(struct urb *urb)
if (ctx->pending == 0) { if (ctx->pending == 0) {
if (ctx->errors) if (ctx->errors)
dev_err(&ctx->dev->intf->dev, dev_err(&ctx->dev->intf->dev,
"iso test, %lu errors out of %lu\n", "during the test, %lu errors out of %lu\n",
ctx->errors, ctx->packet_count); ctx->errors, ctx->packet_count);
complete(&ctx->done); complete(&ctx->done);
} }
......
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