modules: move some spa_debug_mem to the log

Instead of dumping to stderr, write it to the log file.
This commit is contained in:
Wim Taymans 2024-01-11 17:49:50 +01:00
parent 4b145ad444
commit 9a5609de2b
10 changed files with 14 additions and 12 deletions

View file

@ -32,6 +32,7 @@
#include <spa/utils/result.h>
#include <spa/utils/string.h>
#include <spa/utils/json.h>
#include <spa/debug/log.h>
#ifdef HAVE_SYSTEMD
#include <systemd/sd-daemon.h>
@ -251,7 +252,7 @@ static void debug_msg(const char *prefix, const struct pw_protocol_native_messag
else
hex = true;
if (hex)
spa_debug_mem(0, msg->data, msg->size);
spa_debug_log_mem(pw_log_get(), SPA_LOG_LEVEL_DEBUG, 0, msg->data, msg->size);
pw_logt_debug(mod_topic_connection, "%s ****", prefix);