kdumpctl/estimate: Fix unnecessary warning

do_estimate prints the warning that the reserved crashkernel is lower
than the recommended one even then when both values are identical. This
might cause confusion. So omit printing the warning when both values are
equal.

Signed-off-by: Philipp Rudo <prudo@redhat.com>
Acked-by: Coiby Xu <coxu@redhat.com>
This commit is contained in:
Philipp Rudo 2022-03-25 16:19:40 +01:00 committed by Coiby Xu
parent 7141d044c8
commit 8736aa5bb3

View File

@ -1270,7 +1270,7 @@ do_estimate()
done done
fi fi
if [[ $reserved_size -le $recommended_size ]]; then if [[ $reserved_size -lt $recommended_size ]]; then
echo "WARNING: Current crashkernel size is lower than recommended size $((recommended_size / size_mb))M." echo "WARNING: Current crashkernel size is lower than recommended size $((recommended_size / size_mb))M."
fi fi
} }