Skip to content

Commit e5a4155

Browse files
addaleaxBridgeAR
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 <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Jiawen Geng <[email protected]>
1 parent a386114 commit e5a4155

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/env.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,8 @@ void Environment::Exit(int exit_code) {
946946
if (is_main_thread()) {
947947
fprintf(stderr, "(node:%d) ", uv_os_getpid());
948948
} else {
949-
fprintf(stderr, "(node:%d, thread:%llu) ", uv_os_getpid(), thread_id());
949+
fprintf(stderr, "(node:%d, thread:%" PRIu64 ") ",
950+
uv_os_getpid(), thread_id());
950951
}
951952

952953
fprintf(

0 commit comments

Comments
 (0)