mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-11 09:29:53 +00:00
Logging update (#505)
This commit is contained in:
parent
df3387b178
commit
b9f2d3d448
@ -480,13 +480,13 @@ void SCSIDEV::Receive()
|
|||||||
|
|
||||||
// Length != 0 if received
|
// Length != 0 if received
|
||||||
if (ctrl.length != 0) {
|
if (ctrl.length != 0) {
|
||||||
LOGTRACE("%s length was != 0", __PRETTY_FUNCTION__);
|
LOGTRACE("%s length is %d", __PRETTY_FUNCTION__, (int)ctrl.length);
|
||||||
// Receive
|
// Receive
|
||||||
len = ctrl.bus->ReceiveHandShake(&ctrl.buffer[ctrl.offset], ctrl.length);
|
len = ctrl.bus->ReceiveHandShake(&ctrl.buffer[ctrl.offset], ctrl.length);
|
||||||
|
|
||||||
// If not able to receive all, move to status phase
|
// If not able to receive all, move to status phase
|
||||||
if (len != (int)ctrl.length) {
|
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();
|
Error();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user