78e7e44065034a21b46cb0e5a5c77530304bcf89
7 /* common messaging hook */
11 void notify_default_(unsigned int l
, const char *fmt
, ...) {
14 const char *level_names
[] = {
22 const size_t levels
= sizeof level_names
/ sizeof *level_names
;
27 fprintf(f
, "%s", level_names
[l
]);
29 fprintf(f
, "[%d] ", l
);
36 notify_fn_t
*notify
__attribute__((format(printf
, 2, 3))) = notify_default_
;