aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>2005-08-26 16:58:43 +0000
committerhpa <hpa>2005-08-26 16:58:43 +0000
commit85872ce60d95b4b72a07145f9e05a6960c5cf368 (patch)
tree53a168146b8a4e48eac5def57ed4fd40fb5f12c1
parent9bcc3a2714beddc156f05c0f389ee3ada23f459f (diff)
downloadsyslinux-elf-85872ce60d95b4b72a07145f9e05a6960c5cf368.tar.gz
syslinux-elf-85872ce60d95b4b72a07145f9e05a6960c5cf368.tar.xz
syslinux-elf-85872ce60d95b4b72a07145f9e05a6960c5cf368.zip
Display the correct type of disk.syslinux-3.11-pre4
-rw-r--r--memdisk/setup.c5
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);