From 47b43cd832f1e2ae4773f4b23cf080482e561bf5 Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Mon, 30 Aug 2021 14:21:49 +0200 Subject: [PATCH] Updated logging --- src/raspberrypi/devices/scsicd.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/raspberrypi/devices/scsicd.cpp b/src/raspberrypi/devices/scsicd.cpp index 780366e1..cc44d0a7 100644 --- a/src/raspberrypi/devices/scsicd.cpp +++ b/src/raspberrypi/devices/scsicd.cpp @@ -744,7 +744,14 @@ int SCSICD::ReadToc(const DWORD *cdb, BYTE *buf) void SCSICD::GetEventStatusNotification(SASIDEV *controller) { - // This naive (but legal) implementation avoids constant warnings in the logs + if (!ctrl->cmd[1] & 0x01) { + // Asynchronous notification is not supproted + controller->Error(ERROR_CODES::sense_key::ILLEGAL_REQUEST, ERROR_CODES::asc::INVALID_FIELD_IN_CDB); + } + + LOGTRACE("Received request for event polling, which is currently not supported"); + + // This avoids constant warnings in the logs if polling is requested controller->Error(ERROR_CODES::sense_key::ILLEGAL_REQUEST, ERROR_CODES::asc::INVALID_FIELD_IN_CDB); }