Skip to content

Commit 4f8620e

Browse files
tniessentargos
authored andcommitted
src: fix formatting of PIDs
PR-URL: #21852 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Jon Moss <[email protected]>
1 parent bea1ee8 commit 4f8620e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/env.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ void Environment::PrintSyncTrace() const {
306306
Local<v8::StackTrace> stack =
307307
StackTrace::CurrentStackTrace(isolate(), 10, StackTrace::kDetailed);
308308

309-
fprintf(stderr, "(node:%u) WARNING: Detected use of sync API\n",
309+
fprintf(stderr, "(node:%d) WARNING: Detected use of sync API\n",
310310
uv_os_getpid());
311311

312312
for (int i = 0; i < stack->GetFrameCount() - 1; i++) {

src/util.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ std::string GetHumanReadableProcessName() {
115115
void GetHumanReadableProcessName(char (*name)[1024]) {
116116
char title[1024] = "Node.js";
117117
uv_get_process_title(title, sizeof(title));
118-
snprintf(*name, sizeof(*name), "%s[%u]", title, uv_os_getpid());
118+
snprintf(*name, sizeof(*name), "%s[%d]", title, uv_os_getpid());
119119
}
120120

121121
} // namespace node

0 commit comments

Comments
 (0)