File kdump-fate318842-0003-change-output-format.patch of Package kdump
From: Petr Tesarik <ptesarik@suse.com>
Date: Thu, 17 Sep 2015 15:18:41 +0200
Subject: Change output format for "kdumptool calibrate"
References: FATE#318842, bsc#882082
Patch-mainline: v0.8.16
Git-commit: 9cdcd4699ce8e59b34e3ff0671672e1e0c864dfd
The output must convey more information than just a single number.
Let's make a YAML-style output. The single number corresponds to
the proposed "Low" memory reservation.
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
---
kdumptool/calibrate.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/kdumptool/calibrate.cc
+++ b/kdumptool/calibrate.cc
@@ -937,7 +937,7 @@ void Calibrate::execute()
required = DEF_RESERVE_KB;
}
- cout << shr_round_up(required, 10) << endl;
+ cout << "Low: " << shr_round_up(required, 10) << endl;
}
//}}}