From: Mike Christie Date: Tue, 19 Dec 2017 10:03:56 +0000 (-0600) Subject: target_core_user: add cmd id to broken ring message X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=88cf107325fc7e37925de1960bd34ab917924362;p=openwrt%2Fstaging%2Fblogic.git target_core_user: add cmd id to broken ring message Log cmd id that was not found in the tcmu_handle_completions lookup failure path. Signed-off-by: Mike Christie Signed-off-by: Nicholas Bellinger --- diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c index a746fedbb486..1238480cd4c4 100644 --- a/drivers/target/target_core_user.c +++ b/drivers/target/target_core_user.c @@ -1098,7 +1098,8 @@ static unsigned int tcmu_handle_completions(struct tcmu_dev *udev) cmd = idr_remove(&udev->commands, entry->hdr.cmd_id); if (!cmd) { - pr_err("cmd_id not found, ring is broken\n"); + pr_err("cmd_id %u not found, ring is broken\n", + entry->hdr.cmd_id); set_bit(TCMU_DEV_BIT_BROKEN, &udev->flags); break; }