From b9f2d3d448ab6baf3627af211e28dd0ae3af6a39 Mon Sep 17 00:00:00 2001 From: Uwe Seimet <48174652+uweseimet@users.noreply.github.com> Date: Fri, 3 Dec 2021 19:25:36 +0100 Subject: [PATCH] Logging update (#505) --- src/raspberrypi/controllers/scsidev_ctrl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raspberrypi/controllers/scsidev_ctrl.cpp b/src/raspberrypi/controllers/scsidev_ctrl.cpp index 799214d4..49281133 100644 --- a/src/raspberrypi/controllers/scsidev_ctrl.cpp +++ b/src/raspberrypi/controllers/scsidev_ctrl.cpp @@ -480,13 +480,13 @@ void SCSIDEV::Receive() // Length != 0 if received if (ctrl.length != 0) { - LOGTRACE("%s length was != 0", __PRETTY_FUNCTION__); + LOGTRACE("%s length is %d", __PRETTY_FUNCTION__, (int)ctrl.length); // Receive len = ctrl.bus->ReceiveHandShake(&ctrl.buffer[ctrl.offset], ctrl.length); // If not able to receive all, move to status phase if (len != (int)ctrl.length) { - LOGERROR("%s Not able to receive all data. Going to error",__PRETTY_FUNCTION__); + LOGERROR("%s Not able to receive %d data, only received %d. Going to error",__PRETTY_FUNCTION__, (int)ctrl.length, len); Error(); return; }