diff options
author | hpa <hpa> | 2005-08-26 16:58:43 +0000 |
---|---|---|
committer | hpa <hpa> | 2005-08-26 16:58:43 +0000 |
commit | 85872ce60d95b4b72a07145f9e05a6960c5cf368 (patch) | |
tree | 53a168146b8a4e48eac5def57ed4fd40fb5f12c1 | |
parent | 9bcc3a2714beddc156f05c0f389ee3ada23f459f (diff) | |
download | syslinux-85872ce60d95b4b72a07145f9e05a6960c5cf368.tar.gz |
Display the correct type of disk.syslinux-3.11-pre4
-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); |