alsa: redirect dict debug to log

This commit is contained in:
Wim Taymans 2023-09-07 11:52:08 +02:00
parent 3bbccccd05
commit 7c7dea890b
2 changed files with 13 additions and 5 deletions

View file

@ -24,6 +24,7 @@
#include <spa/support/plugin.h>
#include <spa/monitor/device.h>
#include <spa/monitor/utils.h>
#include <spa/debug/log.h>
#include <spa/debug/dict.h>
#include "alsa.h"
@ -582,7 +583,7 @@ static int emit_added_object_info(struct impl *this, struct card *card)
info.props = &SPA_DICT_INIT(items, n_items);
spa_log_debug(this->log, "interface information:");
spa_debug_dict(2, info.props);
spa_debug_log_dict(this->log, SPA_LOG_LEVEL_DEBUG, 2, info.props);
spa_device_emit_object_info(&this->hooks, card->pcm_device_id, &info);
free(cn);
@ -641,7 +642,7 @@ static int emit_added_object_info(struct impl *this, struct card *card)
info.props = &SPA_DICT_INIT(items, n_items);
spa_log_debug(this->log, "interface information:");
spa_debug_dict(2, info.props);
spa_debug_log_dict(this->log, SPA_LOG_LEVEL_DEBUG, 2, info.props);
spa_device_emit_object_info(&this->hooks, card->compress_offload_device_id, &info);
} else {