From 64bade68d3ebde2c88135e5270e54e192d164692 Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Wed, 13 Apr 2011 21:13:37 +0200 Subject: [PATCH] hdt: Changing boot flag semantic in menu mode What we report is the presence of the boot flag and not the ability of a partition to be bootable. A partition can have a valid bootloader with a boot flag not set. So the 'Bootable' semantic was wrong. --- com32/hdt/hdt-menu-disk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/com32/hdt/hdt-menu-disk.c b/com32/hdt/hdt-menu-disk.c index 6862e04..0716b43 100644 --- a/com32/hdt/hdt-menu-disk.c +++ b/com32/hdt/hdt-menu-disk.c @@ -120,9 +120,9 @@ static void compute_partition_information(struct driveinfo *drive_info, add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); } - snprintf(buffer, sizeof buffer, "Bootable : %s", + snprintf(buffer, sizeof buffer, "Boot Flag : %s", (ptab->active_flag == 0x80) ? "Yes" : "No"); - snprintf(statbuffer, sizeof statbuffer, "Bootable: %s", + snprintf(statbuffer, sizeof statbuffer, "Boot Flag: %s", (ptab->active_flag == 0x80) ? "Yes" : "No"); add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); -- 2.7.4