libeplayer3: add hal_debug

Origin commit data
------------------
Branch: master
Commit: 43c00c43fa
Author: max_10 <max_10@gmx.de>
Date: 2024-03-24 (Sun, 24 Mar 2024)

Origin message was:
------------------
- libeplayer3: add hal_debug

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
max_10
2024-03-24 22:23:52 +01:00
committed by vanhofen
parent ff8a6fa984
commit a254f89bcb
11 changed files with 294 additions and 126 deletions

View File

@@ -6,6 +6,7 @@
#include <sys/types.h>
#include <sys/prctl.h>
#include <string.h>
#include "config.h"
int cnxt_debug = 0; /* compat, unused */
@@ -22,9 +23,13 @@ static const char *hal_facility[] =
"init ",
"ca ",
"record",
"player",
NULL
};
#ifdef __cplusplus
extern "C" {
#endif
void _hal_info(int facility, const void *func, const char *fmt, ...)
{
/* %p does print "(nil)" instead of 0x00000000 for NULL */
@@ -50,6 +55,9 @@ void _hal_debug(int facility, const void *func, const char *fmt, ...)
vfprintf(stderr, fmt, args);
va_end(args);
}
#ifdef __cplusplus
}
#endif
void hal_debug_init(void)
{