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>
This commit is contained in:
parent
c0acece7ed
commit
20fdcad935
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user