Logging update (#505)

This commit is contained in:
Uwe Seimet 2021-12-03 19:25:36 +01:00 committed by GitHub
parent df3387b178
commit b9f2d3d448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}