summaryrefslogtreecommitdiffstats
path: root/src/parti386.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-04-12 11:49:36 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-04-12 11:49:36 +0200
commit480320fe82922296d6c181ddcc95fbf5cf566330 (patch)
treebe77470b892dd3fae623c9f677e7f752a860e283 /src/parti386.c
parent062da3696d295e903d2e3e97d225c6794653b597 (diff)
Cylinder is now long unsigned int. Fix a parameter inversion for the DOS version.
Diffstat (limited to 'src/parti386.c')
-rw-r--r--src/parti386.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parti386.c b/src/parti386.c
index 44161db..d69be54 100644
--- a/src/parti386.c
+++ b/src/parti386.c
@@ -810,7 +810,7 @@ static int write_all_log_i386(disk_t *disk_car, const list_part_t *list_part, co
}
nextext_start.sector=1;
if(verbose>1)
- log_verbose("nextext_start %u/%u/%u %lu ? %lu\n", nextext_start.cylinder,nextext_start.head,nextext_start.sector,
+ log_verbose("nextext_start %lu/%u/%u %lu ? %lu\n", nextext_start.cylinder,nextext_start.head,nextext_start.sector,
(long unsigned)(CHS2offset(disk_car,&nextext_start)/disk_car->sector_size),
(long unsigned)((element->part->part_offset+element->part->part_size-1)/disk_car->sector_size));
if(CHS2offset(disk_car,&nextext_start)<=element->part->part_offset+element->part->part_size-1)
@@ -818,7 +818,7 @@ static int write_all_log_i386(disk_t *disk_car, const list_part_t *list_part, co
offset2CHS(disk_car,bloc_nextext->part_offset,&nextext_start);
nextext_start.sector=1;
if(verbose>1)
- log_verbose("nextext_start %u/%u/%u %lu ? %lu\n", nextext_start.cylinder,nextext_start.head,nextext_start.sector,
+ log_verbose("nextext_start %lu/%u/%u %lu ? %lu\n", nextext_start.cylinder,nextext_start.head,nextext_start.sector,
(long unsigned)(CHS2offset(disk_car,&nextext_start)/disk_car->sector_size),
(long unsigned)((element->part->part_offset+element->part->part_size-1)/disk_car->sector_size));
if(CHS2offset(disk_car,&nextext_start)<=element->part->part_offset+element->part->part_size-1)
@@ -827,7 +827,7 @@ static int write_all_log_i386(disk_t *disk_car, const list_part_t *list_part, co
}
}
if(verbose>1)
- log_verbose("nextext_start %u/%u/%u %lu ? %lu\n", nextext_start.cylinder,nextext_start.head,nextext_start.sector,
+ log_verbose("nextext_start %lu/%u/%u %lu ? %lu\n", nextext_start.cylinder,nextext_start.head,nextext_start.sector,
(long unsigned)(CHS2offset(disk_car,&nextext_start)/disk_car->sector_size),
(long unsigned)((element->part->part_offset+element->part->part_size-1)/disk_car->sector_size));
bloc_nextext->part_offset=CHS2offset(disk_car,&nextext_start);