]> git.proxmox.com Git - mirror_qemu.git/blobdiff - tests/benchmark-crypto-hmac.c
io: Fix Lesser GPL version number
[mirror_qemu.git] / tests / benchmark-crypto-hmac.c
index f1dfa240cbd1813a2403c9776958e569534844d8..5cca63678972888e3f11f315278d6d9c5c4d2a8d 100644 (file)
@@ -55,10 +55,9 @@ static void test_hmac_speed(const void *opaque)
     } while (g_test_timer_elapsed() < 5.0);
 
     total /= MiB;
-    g_print("hmac(sha256): ");
-    g_print("Testing chunk_size %zu bytes ", chunk_size);
-    g_print("done: %.2f MB in %.2f secs: ", total, g_test_timer_last());
-    g_print("%.2f MB/sec\n", total / g_test_timer_last());
+    g_test_message("hmac(%s): chunk %zu bytes %.2f MB/sec",
+                   QCryptoHashAlgorithm_str(QCRYPTO_HASH_ALG_SHA256),
+                   chunk_size, total / g_test_timer_last());
 
     g_free(out);
     g_free(in);