summaryrefslogtreecommitdiffstats
path: root/src/hdaccess.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-07-26 23:05:00 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2014-07-26 23:05:00 +0200
commit1408597b6040330f98cf145b42034a2a01459073 (patch)
treeec7935eb58a0102280b1de5ce2750e728f2717be /src/hdaccess.c
parentc432c0c8978e43b5e02c4706c54be456a541946f (diff)
Display number of sectors as long long unsigned integer
see 179ddff52b82753def3b15d38b3f8a18173e46d7
Diffstat (limited to 'src/hdaccess.c')
-rw-r--r--src/hdaccess.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hdaccess.c b/src/hdaccess.c
index b9ed886..22f10b6 100644
--- a/src/hdaccess.c
+++ b/src/hdaccess.c
@@ -1065,9 +1065,9 @@ static const char *file_description(disk_t *disk)
size_to_unit(disk->disk_size, buffer_disk_size);
if(disk->geom.heads_per_cylinder == 1 && disk->geom.sectors_per_head == 1)
snprintf(disk->description_txt, sizeof(disk->description_txt),
- "Disk %s - %s - %lu sectors%s",
+ "Disk %s - %s - %llu sectors%s",
disk->device, buffer_disk_size,
- disk->geom.cylinders,
+ (long long unsigned)(disk->disk_size / disk->sector_size),
((data->mode&O_RDWR)==O_RDWR?"":" (RO)"));
else
snprintf(disk->description_txt, sizeof(disk->description_txt),