mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-14 20:30:04 +01:00
Make benchmark progress parameter the same as the internal unsigned type.
This commit is contained in:
@@ -532,7 +532,7 @@ out:
|
||||
return r;
|
||||
}
|
||||
|
||||
static int benchmark_callback(long time_ms, void *usrptr)
|
||||
static int benchmark_callback(uint32_t time_ms, void *usrptr)
|
||||
{
|
||||
struct crypt_pbkdf_type *pbkdf = usrptr;
|
||||
int r = 0;
|
||||
@@ -542,7 +542,7 @@ static int benchmark_callback(long time_ms, void *usrptr)
|
||||
log_err("Benchmark interrupted.\n");
|
||||
else
|
||||
log_dbg("PBKDF benchmark: memory cost = %u, iterations = %u, "
|
||||
"threads = %u (took %ld ms)", pbkdf->max_memory_kb,
|
||||
"threads = %u (took %u ms)", pbkdf->max_memory_kb,
|
||||
pbkdf->iterations, pbkdf->parallel_threads, time_ms);
|
||||
return r;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user