aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/error/jsonlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/utils/error/jsonlog.c')
-rw-r--r--src/backend/utils/error/jsonlog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/error/jsonlog.c b/src/backend/utils/error/jsonlog.c
index bd0124869d5..2c7b14cacb1 100644
--- a/src/backend/utils/error/jsonlog.c
+++ b/src/backend/utils/error/jsonlog.c
@@ -168,8 +168,8 @@ write_jsonlog(ErrorData *edata)
}
/* Session id */
- appendJSONKeyValueFmt(&buf, "session_id", true, "%lx.%x",
- (long) MyStartTime, MyProcPid);
+ appendJSONKeyValueFmt(&buf, "session_id", true, "%" INT64_MODIFIER "x.%x",
+ MyStartTime, MyProcPid);
/* Line number */
appendJSONKeyValueFmt(&buf, "line_num", false, "%ld", log_line_number);