| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bea1ee8 commit 4f8620e
2 files changed
| 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++) { | |
| 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 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments