mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-15 22:05:28 -05:00
spa: move debug log defines to one place
Use spa_debug to debug formats. Make debug go to stdout by default.
This commit is contained in:
parent
136989eaa6
commit
a16cd95593
7 changed files with 82 additions and 42 deletions
|
|
@ -38,14 +38,11 @@ extern "C" {
|
|||
* \{
|
||||
*/
|
||||
|
||||
#include <spa/debug/log.h>
|
||||
#include <spa/debug/mem.h>
|
||||
#include <spa/debug/types.h>
|
||||
#include <spa/buffer/type-info.h>
|
||||
|
||||
#ifndef spa_debug
|
||||
#define spa_debug(...) ({ fprintf(stderr, __VA_ARGS__);fputc('\n', stderr); })
|
||||
#endif
|
||||
|
||||
static inline int spa_debug_buffer(int indent, const struct spa_buffer *buffer)
|
||||
{
|
||||
uint32_t i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue