summaryrefslogtreecommitdiffstats
path: root/src/phnc.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/phnc.c
parent4acc8c51bb94006ba263d7b40ba268bc296279e1 (diff)
PhotoRec: use "%llu" instead of "%lu" to display sectors offset
Diffstat (limited to 'src/phnc.c')
-rw-r--r--src/phnc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/phnc.c b/src/phnc.c
index 7fcd32e..ec60777 100644
--- a/src/phnc.c
+++ b/src/phnc.c
@@ -94,13 +94,13 @@ int photorec_progressbar(WINDOW *window, const unsigned int pass, const photorec
{
wprintw(window, "Pass %u - ", pass);
if(status==STATUS_FIND_OFFSET)
- wprintw(window,"Reading sector %10lu/%lu, %u/10 headers found\n",
- (unsigned long)((offset-partition->part_offset)/disk_car->sector_size),
- (unsigned long)(partition->part_size/disk_car->sector_size), file_nbr);
+ wprintw(window,"Reading sector %10llu/%llu, %u/10 headers found\n",
+ (unsigned long long)((offset-partition->part_offset)/disk_car->sector_size),
+ (unsigned long long)(partition->part_size/disk_car->sector_size), file_nbr);
else
- wprintw(window,"Reading sector %10lu/%lu, %u files found\n",
- (unsigned long)((offset-partition->part_offset)/disk_car->sector_size),
- (unsigned long)(partition->part_size/disk_car->sector_size), file_nbr);
+ wprintw(window,"Reading sector %10llu/%llu, %u files found\n",
+ (unsigned long long)((offset-partition->part_offset)/disk_car->sector_size),
+ (unsigned long long)(partition->part_size/disk_car->sector_size), file_nbr);
}
wmove(window,10,0);
wclrtoeol(window);