Skip to contentSkip to conversation

target_core_user: add cmd id to broken ring message

RFC PATCH In review Mike Christie 1 participant 1 message Dec 6, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC PATCH 2/3 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.

---
 drivers/target/target_core_user.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/target/target_core_user.c +2 -1
index bac08bc..30bd7d8 100644
@@ -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;
 		}
Signature · 1 line
2.7.2