Cleanup extraneous debug printouts

This commit is contained in:
Tony Kuker 2021-01-30 14:08:09 -06:00
parent f1f60f281f
commit 144abd4524
3 changed files with 4 additions and 9 deletions

View File

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

View File

@ -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<length; i++)
{
printf("%02X ", buf[i]);

View File

@ -19,7 +19,7 @@
#define SPDLOGWRAPPER(loglevel, ...) \
do \
{ \
char logbuf[256]; \
char logbuf[_MAX_FNAME*2]; \
snprintf(logbuf, sizeof(logbuf), __VA_ARGS__); \
spdlog::log(loglevel, logbuf); \
} while (0);