debug: make debug hook signature vprintf() compatible
Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
parent
5c179a7548
commit
5fba0356bb
|
@ -132,6 +132,6 @@ extern void dect_close_handle(struct dect_handle *dh);
|
|||
|
||||
extern int dect_init(struct dect_handle *dh);
|
||||
|
||||
extern void dect_set_debug_hook(void (*fn)(const char *fmt, va_list ap));
|
||||
extern void dect_set_debug_hook(int (*fn)(const char *fmt, va_list ap));
|
||||
|
||||
#endif /* _LIBDECT_DECT_LIBDECT_H */
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
#include <utils.h>
|
||||
#include <lce.h>
|
||||
|
||||
static void __fmtstring(1, 0) (*debug_hook)(const char *fmt, va_list ap);
|
||||
static int __fmtstring(1, 0) (*debug_hook)(const char *fmt, va_list ap);
|
||||
|
||||
void dect_set_debug_hook(void (*fn)(const char *fmt, va_list ap))
|
||||
void dect_set_debug_hook(int (*fn)(const char *fmt, va_list ap))
|
||||
{
|
||||
debug_hook = fn;
|
||||
}
|
||||
|
|
Reference in New Issue