jcs
/wifi_da
/amendments
/34
scsi: Use logger_printf
jcs made amendment 34 about 1 month ago
--- scsi.c Sat Jan 27 23:52:23 2024
+++ scsi.c Wed Sep 25 15:12:15 2024
@@ -100,8 +100,8 @@ scsi_find_wifi(void)
inq.vendorID[sizeof(inq.vendorID) - 1] = '\0';
inq.productID[sizeof(inq.productID) - 1] = '\0';
- DEBUG_LOG(("scsi[%d]: v \"%s\", p \"%s\"", scsi_id,
- inq.vendorID, inq.productID));
+ logger_printf("scsi[%d]: v \"%s\", p \"%s\"", scsi_id,
+ inq.vendorID, inq.productID);
if (memcmp(inq.vendorID, "Dayna", 5) != 0 ||
memcmp(inq.productID, "SCSI/Link", 9) != 0)
@@ -110,8 +110,8 @@ scsi_find_wifi(void)
if (scsi_wifi_info(scsi_id, NULL))
return scsi_id;
- DEBUG_LOG(("scsi[%d]: matched vendor/product but no info",
- scsi_id));
+ logger_printf("scsi[%d]: matched vendor/product but no info",
+ scsi_id);
}
}
@@ -288,15 +288,15 @@ scsi_io(unsigned short scsi_id, unsigned char *cdb, un
/* complete and free the bus before responding to the read/write */
if (SCSIComplete(&scsi_stat, &scsi_msg, 300 /* 1/60 ticks */) != noErr) {
- DEBUG_LOG(("SCSIComplete failed"));
+ logger_printf("SCSIComplete failed");
return -1;
}
if (ioret != noErr && ioret != scPhaseErr)
- DEBUG_LOG(("SCSIRead/Write failed: %d", ioret));
+ logger_printf("SCSIRead/Write failed: %d", ioret);
if (scsi_stat != noErr)
- DEBUG_LOG(("SCSIComplete bad status: %d", scsi_stat));
+ logger_printf("SCSIComplete bad status: %d", scsi_stat);
return len;
}