summaryrefslogtreecommitdiffstats
path: root/src/phrecn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-03-25 14:34:35 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2011-03-25 14:34:35 +0100
commitb2ac7a67424be0bae302a8bea02b5af1a5d5eac7 (patch)
tree781e718840c8456ce2d407ee133ee71b53248d48 /src/phrecn.c
parent4acc8c51bb94006ba263d7b40ba268bc296279e1 (diff)
PhotoRec: use "%llu" instead of "%lu" to display sectors offset
Diffstat (limited to 'src/phrecn.c')
-rw-r--r--src/phrecn.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/phrecn.c b/src/phrecn.c
index 12e938e..6a725d5 100644
--- a/src/phrecn.c
+++ b/src/phrecn.c
@@ -209,7 +209,9 @@ static int photorec_aux(disk_t *disk_car, partition_t *partition, const int verb
info_list_search_space(list_search_space, current_search_space, disk_car->sector_size, 0, verbose);
if(verbose>1)
{
- log_verbose("Reading sector %10lu/%lu\n",(unsigned long)((offset-partition->part_offset)/disk_car->sector_size),(unsigned long)((partition->part_size-1)/disk_car->sector_size));
+ log_verbose("Reading sector %10llu/%llu\n",
+ (unsigned long long)((offset-partition->part_offset)/disk_car->sector_size),
+ (unsigned long long)((partition->part_size-1)/disk_car->sector_size));
}
disk_car->pread(disk_car, buffer, READ_SIZE, offset);
while(current_search_space!=list_search_space)
@@ -459,7 +461,9 @@ static int photorec_aux(disk_t *disk_car, partition_t *partition, const int verb
buffer=buffer_olddata + blocksize;
if(verbose>1)
{
- log_verbose("Reading sector %10lu/%lu\n",(unsigned long)((offset-partition->part_offset)/disk_car->sector_size),(unsigned long)((partition->part_size-1)/disk_car->sector_size));
+ log_verbose("Reading sector %10llu/%llu\n",
+ (unsigned long long)((offset-partition->part_offset)/disk_car->sector_size),
+ (unsigned long long)((partition->part_size-1)/disk_car->sector_size));
}
if(disk_car->pread(disk_car, buffer, READ_SIZE, offset) != READ_SIZE)
{