From 8f42c9efe95e6fe8370f76d0a239f27cc4875f04 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Fri, 18 Jan 2019 07:40:06 +0100 Subject: [PATCH] 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 276ce93095029d..bb4c4e1a3a8e24 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 }