projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7d20a7
)
Revert "hdt: remove set-but-unused variable"
author
Erwan Velu
<erwanaliasr1@gmail.com>
Tue, 26 Apr 2011 17:32:01 +0000
(19:32 +0200)
committer
Erwan Velu
<erwanaliasr1@gmail.com>
Tue, 26 Apr 2011 17:32:01 +0000
(19:32 +0200)
This reverts commit
842d7e35ccd8cd89105faf0266497e838d96c8b3
.
In fact, you found a real bug. I missed at dumping some information.
So I revert this commit and then add the missing code.
com32/hdt/hdt-dump-disks.c
patch
|
blob
|
history
diff --git
a/com32/hdt/hdt-dump-disks.c
b/com32/hdt/hdt-dump-disks.c
index
dcbcaa9
..
ed2aea3
100644
(file)
--- a/
com32/hdt/hdt-dump-disks.c
+++ b/
com32/hdt/hdt-dump-disks.c
@@
-42,6
+42,7
@@
static void show_partition_information(struct driveinfo *drive_info,
char ostype[64]={0};
char *parttype;
unsigned int start, end;
+ bool bootable = false;
int i = nb_partitions_seen;
start = partition_offset;
@@
-52,6
+53,8
@@
static void show_partition_information(struct driveinfo *drive_info,
get_label(ptab->ostype, &parttype);
get_bootloader_string(drive_info, ptab, bootloader_name, 9);
+ if (ptab->active_flag == 0x80)
+ bootable=true;
snprintf(ostype,sizeof(ostype),"%02X",ptab->ostype);