summaryrefslogtreecommitdiffstats
path: root/src/photorec.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-01-25 14:50:46 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2014-01-25 14:50:46 +0100
commit9ecd18f7ddb83ab47c6b63ca28c953db204404fa (patch)
treeae886a345682f577d55d231bd5224f2d715a230a /src/photorec.c
parent6690fdd45ff41ae44e20ca72dfb2afab39010894 (diff)
report blocksize and offset in update_blocksize() instead of menu_choose_blocksize()
Diffstat (limited to 'src/photorec.c')
-rw-r--r--src/photorec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/photorec.c b/src/photorec.c
index f534fd1..f68413d 100644
--- a/src/photorec.c
+++ b/src/photorec.c
@@ -510,10 +510,11 @@ unsigned int find_blocksize(alloc_data_t *list_search_space, const unsigned int
return blocksize;
}
-void update_blocksize(unsigned int blocksize, alloc_data_t *list_search_space, const uint64_t offset)
+void update_blocksize(const unsigned int blocksize, alloc_data_t *list_search_space, const uint64_t offset)
{
struct td_list_head *search_walker = NULL;
struct td_list_head *search_walker_prev = NULL;
+ log_info("blocksize=%u, offset=%u\n", blocksize, (unsigned int)(offset%blocksize));
/* Align end of last range (round up) */
search_walker=list_search_space->list.prev;
{