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.
This commit is contained in:
Marco Trevisan (Treviño)
2026-06-22 15:19:30 +02:00
parent 3db8184a30
commit 8009a86247
+1 -8
View File
@@ -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);