diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-01-18 07:40:06 +0100 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-01-18 12:16:17 +0100 |
commit | 20fdcad93545d3a3723655778fb2ae40c76dee4e (patch) | |
tree | 1554d18655bea4af49ddf40e15fb1ff81af10481 /src/node_report.cc | |
parent | c0acece7ed70b3584474d646fcb8ef93204540b6 (diff) | |
download | android-node-v8-20fdcad93545d3a3723655778fb2ae40c76dee4e.tar.gz android-node-v8-20fdcad93545d3a3723655778fb2ae40c76dee4e.tar.bz2 android-node-v8-20fdcad93545d3a3723655778fb2ae40c76dee4e.zip |
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 <gpunathi@in.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Diffstat (limited to 'src/node_report.cc')
-rw-r--r-- | src/node_report.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_report.cc b/src/node_report.cc index 276ce93095..bb4c4e1a3a 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 } |