diff options
-rw-r--r-- | memdisk/setup.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/memdisk/setup.c b/memdisk/setup.c index 1f8aa5d3..ee429b4a 100644 --- a/memdisk/setup.c +++ b/memdisk/setup.c @@ -547,8 +547,9 @@ uint32_t setup(syscall_t cs_syscall, void *cs_bounce) geometry = get_disk_image_geometry(ramdisk_image, ramdisk_size); - printf("Disk is %s, %u K, C/H/S = %u/%u/%u\n", - geometry->driveno ? "hard disk" : "floppy", + printf("Disk is %s %d, %u K, C/H/S = %u/%u/%u\n", + (geometry->driveno & 0x80) ? "hard disk" : "floppy", + geometry->driveno & 0x7f, geometry->sectors >> 1, geometry->c, geometry->h, geometry->s); |