mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine code
This commit is contained in:
parent
16cde27a1e
commit
1743899a23
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue