Explorar el Código

Add log message about prefetch enabled

Petteri Aimonen hace 3 años
padre
commit
588a18ec1c
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. 9 0
      src/ZuluSCSI_disk.cpp

+ 9 - 0
src/ZuluSCSI_disk.cpp

@@ -250,6 +250,15 @@ bool scsiDiskOpenHDDImage(int target_idx, const char *filename, int scsi_id, int
 
         setDefaultDriveInfo(target_idx);
 
+        if (img.prefetchbytes > 0)
+        {
+            azlog("---- Read prefetch enabled: ", (int)img.prefetchbytes, " bytes");
+        }
+        else
+        {
+            azlog("---- Read prefetch disabled");
+        }
+
         return true;
     }