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:
Wim Taymans 2022-02-07 17:00:38 +01:00
parent 136989eaa6
commit a16cd95593
7 changed files with 82 additions and 42 deletions

View file

@ -34,15 +34,12 @@ extern "C" {
* \{
*/
#include <spa/debug/log.h>
#include <spa/debug/mem.h>
#include <spa/debug/types.h>
#include <spa/pod/pod.h>
#include <spa/pod/iter.h>
#ifndef spa_debug
#define spa_debug(...) ({ fprintf(stderr, __VA_ARGS__);fputc('\n', stderr); })
#endif
static inline int
spa_debug_pod_value(int indent, const struct spa_type_info *info,
uint32_t type, void *body, uint32_t size)