diff --git a/src/userland/scisi/main.c b/src/userland/scisi/main.c index 3cfc19f..d258918 100644 --- a/src/userland/scisi/main.c +++ b/src/userland/scisi/main.c @@ -83,12 +83,10 @@ doInquiry(device); readSize(device); uint8_t *buffer = read(device, 0, 512); - printf("first sector of device %i: \n", device->id); - for (uint32_t i = 0; i < 512 / 8; i++) { - printf("%x %x %x %x %x %x %x %x", - buffer[i * 8 + 0], buffer[i * 8 + 1], buffer[i * 8 + 2], buffer[i * 8 + 3], - buffer[i * 8 + 4], buffer[i * 8 + 5], buffer[i * 8 + 6], buffer[i * 8 + 7]); + if (buffer[510] == 0x55 && buffer[511] == 0xAA) { + printf("device %i is bootable!\n", device->id); } + free(buffer - 4); return 0; }