Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-12-18 17:41:54 +0300
committerRich Trott <rtrott@gmail.com>2019-12-19 16:32:24 +0300
commitff5664b83b89c55e4ab5d5f60068fb457f1f5872 (patch)
tree3508c5c8f257b1ce6184ec57bdd3f0578c581690 /src
parent3e5967bacb199fcffd9ec080adc62e1382e0cd76 (diff)
src: fix compiler warning in env.cc
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 <cjihrig@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/env.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/env.cc b/src/env.cc
index c816ea82d6a..80f200e8cd3 100644
--- a/src/env.cc
+++ b/src/env.cc
@@ -943,7 +943,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(