summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pblocksize.c1
-rw-r--r--src/photorec.c3
-rw-r--r--src/photorec.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/pblocksize.c b/src/pblocksize.c
index 35658fc..0988d12 100644
--- a/src/pblocksize.c
+++ b/src/pblocksize.c
@@ -140,7 +140,6 @@ unsigned int menu_choose_blocksize(unsigned int blocksize, const unsigned int se
}
} while(quit==0);
}
- log_info("blocksize=%u,offset=%u\n",blocksize,(unsigned int)*offset);
return blocksize;
}
#endif
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;
{
diff --git a/src/photorec.h b/src/photorec.h
index 406ebd2..90a777e 100644
--- a/src/photorec.h
+++ b/src/photorec.h
@@ -71,7 +71,7 @@ void write_stats_log(const file_stat_t *file_stats);
void update_stats(file_stat_t *file_stats, alloc_data_t *list_search_space);
partition_t *new_whole_disk(const disk_t *disk_car);
unsigned int find_blocksize(alloc_data_t *list_file, const unsigned int default_blocksize, uint64_t *offset);
-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);
void forget(alloc_data_t *list_search_space, alloc_data_t *current_search_space);
void init_search_space(alloc_data_t *list_search_space, const disk_t *disk_car, const partition_t *partition);
unsigned int remove_used_space(disk_t *disk_car, const partition_t *partition, alloc_data_t *list_search_space);