aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/support
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-01-13 21:35:30 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-01-13 21:35:30 -0800
commit2d8f790ebccf50e05b2988a2c2113b4701a5e902 (patch)
treeccd07e569fad37522b41dc4d90e054653b12f7d7 /src/core/support
parentc5dcb6af749279089513bdfde9308b6fb917ed7a (diff)
Format change
Diffstat (limited to 'src/core/support')
-rw-r--r--src/core/support/log_posix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/support/log_posix.c b/src/core/support/log_posix.c
index 83d1c1386a..55a38b136d 100644
--- a/src/core/support/log_posix.c
+++ b/src/core/support/log_posix.c
@@ -51,7 +51,7 @@
#include <time.h>
#include <pthread.h>
-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);