From d04891f4f2beefde85f04970770d442a0e5cb97d Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Wed, 18 Dec 2019 15:41:54 +0100 Subject: [PATCH] src: fix compiler warning in env.cc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the following warning: ../src/env.cc: In member function ‘void node::Environment::Exit(int)’: ../src/env.cc:946:77: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] fprintf(stderr, "(node:%d, thread:%llu) ", uv_os_getpid(), thread_id()); ~~~~~~~~~~~^ PR-URL: https://github.com/nodejs/node/pull/31020 Reviewed-By: Colin Ihrig Reviewed-By: Chengzhong Wu Reviewed-By: Richard Lau Reviewed-By: David Carlier Reviewed-By: James M Snell Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: Jiawen Geng --- src/env.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/env.cc b/src/env.cc index bae7847c25b0c9..4eb30b315e9924 100644 --- a/src/env.cc +++ b/src/env.cc @@ -937,7 +937,8 @@ void Environment::Exit(int exit_code) { if (is_main_thread()) { fprintf(stderr, "(node:%d) ", uv_os_getpid()); } else { - fprintf(stderr, "(node:%d, thread:%llu) ", uv_os_getpid(), thread_id()); + fprintf(stderr, "(node:%d, thread:%" PRIu64 ") ", + uv_os_getpid(), thread_id()); } fprintf(