summaryrefslogtreecommitdiffstats
path: root/src/msdos.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-10-24 20:30:19 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2010-10-24 20:30:19 +0200
commit7fbc038d1e62f4211aef0b0cc68d4be98f7df3a3 (patch)
treed4c9e19cbb1f828e8333ec6111660c0af91c5ecb /src/msdos.c
parentc9cd19d63db1dd2011370ee0bfc90ecc518f8ae2 (diff)
New prototype for size_to_unit()
Diffstat (limited to 'src/msdos.c')
-rw-r--r--src/msdos.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/msdos.c b/src/msdos.c
index 06cca88..16d1e63 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -432,8 +432,9 @@ const char *disk_description(disk_t *disk_car)
{
struct info_disk_struct*data=disk_car->data;
char buffer_disk_size[100];
+ size_to_unit(disk_car->disk_size, buffer_disk_size),
snprintf(disk_car->description_txt, sizeof(disk_car->description_txt),"Disk %2x - %s - CHS %lu %u %u%s",
- data->disk, size_to_unit(disk_car->disk_size,buffer_disk_size),
+ data->disk, buffer_disk_size,
disk_car->geom.cylinders, disk_car->geom.heads_per_cylinder, disk_car->geom.sectors_per_head,
data->bad_geometry!=0?" (Buggy BIOS)":"");
return disk_car->description_txt;
@@ -443,8 +444,9 @@ static const char *disk_description_short(disk_t *disk_car)
{
struct info_disk_struct*data=disk_car->data;
char buffer_disk_size[100];
+ size_to_unit(disk_car->disk_size, buffer_disk_size);
snprintf(disk_car->description_short_txt, sizeof(disk_car->description_txt),"Disk %2x - %s",
- data->disk, size_to_unit(disk_car->disk_size,buffer_disk_size));
+ data->disk, buffer_disk_size);
return disk_car->description_short_txt;
}