From 20fdcad93545d3a3723655778fb2ae40c76dee4e Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Fri, 18 Jan 2019 07:40:06 +0100 Subject: src: silence compiler warning in node_report.cc Currently the following compiler warnings is generated: ../src/node_report.cc:778:43: warning: format specifies type 'unsigned long' but the argument has type 'rlim_t' (aka 'unsigned long long') [-Wformat] snprintf(buf, sizeof(buf), "%lu", limit.rlim_max); ~~~ ^~~~~~~~~~~~~~ %llu 1 warning generated. This commit changes the format specifier to $llu. PR-URL: https://github.com/nodejs/node/pull/25557 Reviewed-By: Gireesh Punathil Reviewed-By: Richard Lau Reviewed-By: Minwoo Jung --- src/node_report.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_report.cc b/src/node_report.cc index 276ce930950..bb4c4e1a3a8 100644 --- a/src/node_report.cc +++ b/src/node_report.cc @@ -775,7 +775,7 @@ static void PrintSystemInformation(JSONWriter* writer) { snprintf(buf, sizeof(buf), "%lu", limit.rlim_max); hard = std::string(buf); #else - snprintf(buf, sizeof(buf), "%lu", limit.rlim_max); + snprintf(buf, sizeof(buf), "%llu", limit.rlim_max); hard = std::string(buf); #endif } -- cgit v1.2.3