-O pid: show/log process id of running tfcrypt.
[tfcrypt.git] / tfc_bench.c
index 435354b27aeb96cceef6628db524c89c8ac39280..e8ddaa3a7f5803b9890c54552cc6928de89cac4d 100644 (file)
@@ -54,7 +54,7 @@ void do_benchmark(tfc_useconds useconds, double dseconds)
        if (ctr_mode == TFC_MODE_STREAM) tfe_init_iv(&tfe, key, ctr);
        if (ctr_mode == TFC_MODE_XTS) tfc_getrandom(xtskey, sizeof(xtskey));
 
-       tfc_nfsay(stdout, "%s: doing %s benchmark for %.4f seconds ... ", progname, tfc_modename(ctr_mode), dseconds);
+       tfc_nfsay(stdout, "%s: doing %s benchmark for %.4f seconds ... ", tfc_format_pid(progname), tfc_modename(ctr_mode), dseconds);
 
        do_stop = NO;
        while (1) {