- Timestamp:
- 11/01/09 05:32:26 (3 years ago)
- Children:
- 6e20c10dbc1b6740f94a01f74d6eeda8bb3a7ca4
- Parents:
- 111fe227a44f170e91f2d6f57dd6ce285b67a56a
- git-committer:
- Pierre-Alexandre Meyer <pierre@mouraf.org> / 2009-10-31T22:32:26Z-0700
- Files:
-
- 1 modified
-
com32/hdt/hdt-cli-disk.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
com32/hdt/hdt-cli-disk.c
re9069c r78f771 63 63 int i = nb_partitions_seen; 64 64 65 reset_more_printf(); 66 65 67 start = partition_offset; 66 68 end = start + ptab->length - 1; … … 115 117 116 118 detect_disks(hardware); 119 reset_more_printf(); 120 117 121 if (!hardware->disk_info[i].cbios) 118 122 return; /* Invalid geometry */ … … 158 162 detect_disks(hardware); 159 163 160 int first_one = 0;164 int first_one = 0; 161 165 for (int drive = 0x80; drive < 0xff; drive++) { 162 166 if (hardware->disk_info[drive - 0x80].cbios) { 163 if (!first_one) {164 first_one = 1;165 } else {166 pause_printf();167 }167 if (!first_one) { 168 first_one = 1; 169 } else { 170 pause_printf(); 171 } 168 172 char buf[5] = ""; 169 173 sprintf(buf, "0x%x", drive);
