From 144abd45246984e988df2e60c241442d4eae8ef9 Mon Sep 17 00:00:00 2001 From: Tony Kuker Date: Sat, 30 Jan 2021 14:08:09 -0600 Subject: [PATCH] Cleanup extraneous debug printouts --- src/raspberrypi/devices/scsi_daynaport.cpp | 9 ++------- src/raspberrypi/devices/scsihd.cpp | 2 +- src/raspberrypi/log.h | 2 +- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/raspberrypi/devices/scsi_daynaport.cpp b/src/raspberrypi/devices/scsi_daynaport.cpp index 6eebad4c..76bbfbbf 100644 --- a/src/raspberrypi/devices/scsi_daynaport.cpp +++ b/src/raspberrypi/devices/scsi_daynaport.cpp @@ -387,7 +387,7 @@ BOOL FASTCALL SCSIDaynaPort::Write(const DWORD *cdb, const BYTE *buf, DWORD bloc //--------------------------------------------------------------------------- int FASTCALL SCSIDaynaPort::RetrieveStats(const DWORD *cdb, BYTE *buffer) { - DWORD response_size; + DWORD response_size; DWORD allocation_length; // DWORD frame_alignment_errors; @@ -429,7 +429,7 @@ int FASTCALL SCSIDaynaPort::RetrieveStats(const DWORD *cdb, BYTE *buffer) for(int i=0; i< 6; i++) { - LOGINFO("%s CDB byte %d: %02X",__PRETTY_FUNCTION__, i, (unsigned int)cdb[i]); + LOGTRACE("%s CDB byte %d: %02X",__PRETTY_FUNCTION__, i, (unsigned int)cdb[i]); } response_size = 18; @@ -440,11 +440,6 @@ int FASTCALL SCSIDaynaPort::RetrieveStats(const DWORD *cdb, BYTE *buffer) LOGTRACE("%s response size is %d", __PRETTY_FUNCTION__, (int)response_size); - // // SendMessage6 is 18 bytes - // for(int i=0; i< 18; i++) - // { - // LOGDEBUG("%s Byte %d: %02X",__PRETTY_FUNCTION__, i, (int)buffer[i]); - // } if(response_size > allocation_length) { response_size = allocation_length; diff --git a/src/raspberrypi/devices/scsihd.cpp b/src/raspberrypi/devices/scsihd.cpp index cc9fa858..f7e7545b 100644 --- a/src/raspberrypi/devices/scsihd.cpp +++ b/src/raspberrypi/devices/scsihd.cpp @@ -241,7 +241,7 @@ BOOL FASTCALL SCSIHD::ModeSelect(const DWORD *cdb, const BYTE *buf, int length) case 0x08: // Debug code for Issue #2: // https://github.com/akuker/RASCSI/issues/2 - printf("[Unhandled page code] Received mode page code 8 with total length %d\n ", length); + LOGWARN("[Unhandled page code] Received mode page code 8 with total length %d\n ", length); for (int i = 0; i