|
|
@ -47,7 +47,7 @@ void gpr_log(const char *file, int line, gpr_log_severity severity, |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
/* Allocate a new buffer, with space for the NUL terminator. */ |
|
|
|
/* Allocate a new buffer, with space for the NUL terminator. */ |
|
|
|
size_t strp_buflen = (size_t)ret + 1; |
|
|
|
size_t strp_buflen = (size_t)ret + 1; |
|
|
|
message = gpr_malloc(strp_buflen); |
|
|
|
message = (char *)gpr_malloc(strp_buflen); |
|
|
|
|
|
|
|
|
|
|
|
/* Print to the buffer. */ |
|
|
|
/* Print to the buffer. */ |
|
|
|
va_start(args, format); |
|
|
|
va_start(args, format); |
|
|
@ -66,7 +66,7 @@ void gpr_log(const char *file, int line, gpr_log_severity severity, |
|
|
|
|
|
|
|
|
|
|
|
/* Simple starter implementation */ |
|
|
|
/* Simple starter implementation */ |
|
|
|
extern "C" void gpr_default_log(gpr_log_func_args *args) { |
|
|
|
extern "C" void gpr_default_log(gpr_log_func_args *args) { |
|
|
|
char *final_slash; |
|
|
|
const char *final_slash; |
|
|
|
const char *display_file; |
|
|
|
const char *display_file; |
|
|
|
char time_buffer[64]; |
|
|
|
char time_buffer[64]; |
|
|
|
time_t timer; |
|
|
|
time_t timer; |
|
|
|