GeezerVison is showing github.com — src: fix formatting of PIDs · nodejs/node@4f8620e
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/env.cc +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -306,7 +306,7 @@ void Environment::PrintSyncTrace() const { |
306 | 306 | Local<v8::StackTrace> stack = |
307 | 307 | StackTrace::CurrentStackTrace(isolate(), 10, StackTrace::kDetailed); |
308 | 308 |
|
309 | | - fprintf(stderr, "(node:%u) WARNING: Detected use of sync API\n", |
| 309 | + fprintf(stderr, "(node:%d) WARNING: Detected use of sync API\n", |
310 | 310 | uv_os_getpid()); |
311 | 311 |
|
312 | 312 | for (int i = 0; i < stack->GetFrameCount() - 1; i++) { |
|
Collapse file
Copy file name to clipboardExpand all lines: src/util.cc +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -115,7 +115,7 @@ std::string GetHumanReadableProcessName() { |
115 | 115 | void GetHumanReadableProcessName(char (*name)[1024]) { |
116 | 116 | char title[1024] = "Node.js"; |
117 | 117 | 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()); |
119 | 119 | } |
120 | 120 |
|
121 | 121 | } // namespace node |