From 8009a8624752408ecf678b763a3901fa55668703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Mon, 22 Jun 2026 13:36:28 +0200 Subject: [PATCH] fpi-log: Use single-line hex bytes dump It's easier to parse and copy and also it makes easier to use it with tools such as python's bytes.fromhex() without reformatting it. --- libfprint/fpi-log.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/libfprint/fpi-log.c b/libfprint/fpi-log.c index 0bc4088a..40e223ca 100644 --- a/libfprint/fpi-log.c +++ b/libfprint/fpi-log.c @@ -44,14 +44,7 @@ void line = g_string_new (""); for (gint i = 0; i < len; i++) - { - g_string_append_printf (line, "%02x ", buf[i]); - if ((i + 1) % 16 == 0) - { - g_log (log_domain, G_LOG_LEVEL_DEBUG, "%s", line->str); - g_string_set_size (line, 0); - } - } + g_string_append_printf (line, "%02x", buf[i]); if (line->len) g_log (log_domain, G_LOG_LEVEL_DEBUG, "%s", line->str);