Prechádzať zdrojové kódy

Add more debug info to streaming errors

Petteri Aimonen 3 rokov pred
rodič
commit
60337eab4e
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/AzulSCSI.cpp

+ 1 - 1
src/AzulSCSI.cpp

@@ -463,7 +463,7 @@ void writeDataPhase_FromSD(uint32_t adds, uint32_t len)
     }
     else if (status != transfer_len)
     {
-      azlog("Streaming failed halfway, data may be corrupt, aborting!");
+      azlog("Streaming failed halfway: ", (int)status, "/", (int)transfer_len, " bytes, data may be corrupt, aborting!");
       g_scsi_sts |= 2;
       return;
     }