From 2d8f790ebccf50e05b2988a2c2113b4701a5e902 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Tue, 13 Jan 2015 21:35:30 -0800 Subject: [PATCH] Format change --- src/core/support/log_posix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/support/log_posix.c b/src/core/support/log_posix.c index 83d1c1386ae..55a38b136d0 100644 --- a/src/core/support/log_posix.c +++ b/src/core/support/log_posix.c @@ -51,7 +51,7 @@ #include #include -static long gettid() { return (long)(gpr_intptr)pthread_self(); } +static gpr_intptr gettid() { return (gpr_intptr)pthread_self(); } void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format, ...) { @@ -97,7 +97,7 @@ void gpr_default_log(gpr_log_func_args *args) { strcpy(time_buffer, "error:strftime"); } - fprintf(stderr, "%s%s.%09d %7ld %s:%d] %s\n", + fprintf(stderr, "%s%s.%09d %7tu %s:%d] %s\n", gpr_log_severity_string(args->severity), time_buffer, (int)(now.tv_nsec), gettid(), display_file, args->line, args->message);