Move progress function to utils.

This commit is contained in:
Milan Broz
2017-08-22 16:13:40 +02:00
parent 677adc7adc
commit 540972ff59
3 changed files with 20 additions and 18 deletions

View File

@@ -51,6 +51,8 @@
#define SECTOR_SIZE 512
#define ROUND_SECTOR(x) (((x) + SECTOR_SIZE - 1) / SECTOR_SIZE)
#define DEFAULT_WIPE_BLOCK 1048576 /* 1 MiB */
extern int opt_debug;
extern int opt_verbose;
extern int opt_batch_mode;
@@ -90,6 +92,7 @@ void tools_clear_line(void);
void tools_time_progress(uint64_t device_size, uint64_t bytes,
struct timeval *start_time, struct timeval *end_time);
int tools_wipe_progress(uint64_t size, uint64_t offset, void *usrptr);
/* Log */
#define log_dbg(x...) clogger(NULL, CRYPT_LOG_DEBUG, __FILE__, __LINE__, x)