
30 Apr
2015
30 Apr
'15
6:22 a.m.
On 29 April 2015 at 08:38, Bin Meng bmeng.cn@gmail.com wrote:
On Wed, Apr 29, 2015 at 9:56 PM, Simon Glass sjg@chromium.org wrote:
Add a function similar to print_size() that works for frequencies. It can handle from Hz to GHz.
Signed-off-by: Simon Glass sjg@chromium.org
Reviewed-by: Bin Meng bmeng.cn@gmail.com Tested-by: Bin Meng bmeng.cn@gmail.com
Changes in v3:
- Only display 2 digits of the fractional part, and round up when needed
Changes in v2:
- Correct bugs in number output
include/display_options.h | 11 +++++++++++ lib/display_options.c | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+)
Applied to u-boot-x86.