Refine code
This commit is contained in:
parent
16cde27a1e
commit
1743899a23
|
|
@ -1069,6 +1069,7 @@ extern const char* srs_human_format_time();
|
||||||
#define srs_human_raw(msg, ...) (void)0
|
#define srs_human_raw(msg, ...) (void)0
|
||||||
#else
|
#else
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <errno.h>
|
||||||
#define srs_human_trace(msg, ...) \
|
#define srs_human_trace(msg, ...) \
|
||||||
fprintf(stdout, "[T][%d][%s] ", getpid(), srs_human_format_time());\
|
fprintf(stdout, "[T][%d][%s] ", getpid(), srs_human_format_time());\
|
||||||
fprintf(stdout, msg, ##__VA_ARGS__); fprintf(stdout, "\n")
|
fprintf(stdout, msg, ##__VA_ARGS__); fprintf(stdout, "\n")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user