Skip to content

Commit 8f42c9e

Browse files
danbevtargos
authored andcommitted
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: #25557 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
1 parent 0800f91 commit 8f42c9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_report.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ static void PrintSystemInformation(JSONWriter* writer) {
775775
snprintf(buf, sizeof(buf), "%lu", limit.rlim_max);
776776
hard = std::string(buf);
777777
#else
778-
snprintf(buf, sizeof(buf), "%lu", limit.rlim_max);
778+
snprintf(buf, sizeof(buf), "%llu", limit.rlim_max);
779779
hard = std::string(buf);
780780
#endif
781781
}

0 commit comments

Comments
 (0)