Skip to content

Commit 91b72b3

Browse files
addaleaxBethGriggs
authored andcommitted
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: #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>
1 parent d3c9695 commit 91b72b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/env.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,8 @@ void Environment::Exit(int exit_code) {
937937
if (is_main_thread()) {
938938
fprintf(stderr, "(node:%d) ", uv_os_getpid());
939939
} else {
940-
fprintf(stderr, "(node:%d, thread:%llu) ", uv_os_getpid(), thread_id());
940+
fprintf(stderr, "(node:%d, thread:%" PRIu64 ") ",
941+
uv_os_getpid(), thread_id());
941942
}
942943

943944
fprintf(

0 commit comments

Comments
 (0)