summaryrefslogtreecommitdiffstats
path: root/src/intrf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-01-26 20:59:50 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-01-26 20:59:50 +0100
commit16cba0657e04b17829e72b577a223f011a15c9f0 (patch)
treeecc6d16e8d7b8832c5eac5fbbad82985a2e864f1 /src/intrf.c
parent67756ae597c60cb84b7227969afba435ba3f7c0d (diff)
Fix display of partition bigger than 2GB
Diffstat (limited to 'src/intrf.c')
-rw-r--r--src/intrf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/intrf.c b/src/intrf.c
index d951235..34dca68 100644
--- a/src/intrf.c
+++ b/src/intrf.c
@@ -182,9 +182,9 @@ const char *aff_part_aux(const unsigned int newline, const disk_t *disk_car, con
pos+=snprintf(&msg[pos],sizeof(msg)-pos-1, " Unknown ");
if(disk_car->unit==UNIT_SECTOR)
{
- pos+=snprintf(&msg[pos],sizeof(msg)-pos-1, " %10lu %10lu ",
- (long unsigned)(partition->part_offset/disk_car->sector_size),
- (long unsigned)((partition->part_offset+partition->part_size-1)/disk_car->sector_size));
+ pos+=snprintf(&msg[pos],sizeof(msg)-pos-1, " %10llu %10llu ",
+ (long long unsigned)(partition->part_offset/disk_car->sector_size),
+ (long long unsigned)((partition->part_offset+partition->part_size-1)/disk_car->sector_size));
}
else
{
@@ -196,7 +196,7 @@ const char *aff_part_aux(const unsigned int newline, const disk_t *disk_car, con
offset2head( disk_car,partition->part_offset+partition->part_size-1),
offset2sector( disk_car,partition->part_offset+partition->part_size-1));
}
- pos+=snprintf(&msg[pos],sizeof(msg)-pos-1,"%10lu", (long unsigned)(partition->part_size/disk_car->sector_size));
+ pos+=snprintf(&msg[pos],sizeof(msg)-pos-1,"%10llu", (long long unsigned)(partition->part_size/disk_car->sector_size));
if(partition->partname[0]!='\0')
pos+=snprintf(&msg[pos],sizeof(msg)-pos-1, " [%s]",partition->partname);
if(partition->fsname[0]!='\0')