|
|
|
@ -4,7 +4,7 @@ |
|
|
|
#include "common.h" |
|
|
|
#include <stdarg.h> // 必须包含此头文件以使用变参宏 |
|
|
|
|
|
|
|
static char g_sBuildTime[64] = {0}; |
|
|
|
static char g_sBuildTime[128] = {0}; |
|
|
|
|
|
|
|
WEAK void elog_output(uint8_t level, const char *tag, const char *file, const char *func, long line, const char *format, ...) |
|
|
|
{ |
|
|
|
@ -97,6 +97,10 @@ int Rd_RegularFileExists(const char *_psPath) |
|
|
|
|
|
|
|
char *Rd_GetBuildTime(void) |
|
|
|
{ |
|
|
|
snprintf(g_sBuildTime, sizeof(g_sBuildTime), "%s %s", __DATE__, __TIME__); |
|
|
|
#ifdef RD_HOSTNAME |
|
|
|
snprintf(g_sBuildTime, sizeof(g_sBuildTime), "%s build [%s %s] by %s", RD_VERSION, __DATE__, __TIME__, RD_HOSTNAME); |
|
|
|
#else |
|
|
|
snprintf(g_sBuildTime, sizeof(g_sBuildTime), "%s build [%s %s]", RD_VERSION, __DATE__, __TIME__); |
|
|
|
#endif |
|
|
|
return g_sBuildTime; |
|
|
|
} |