lib: print_freq() should output kHz not KHz
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 8 Oct 2020 20:23:23 +0000 (22:23 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 22 Oct 2020 13:54:54 +0000 (09:54 -0400)
In the International System of Units (SI) the prefix kilo is abbreviated as
'k' not 'K'. 'K' is the symbol for Kelvin.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Stefan Roese <sr@denx.de>
include/display_options.h
lib/display_options.c

index a0dabca..049688e 100644 (file)
@@ -24,7 +24,7 @@ void print_size(uint64_t size, const char *suffix);
 /**
  * print_freq() - Print a frequency with a suffix
  *
- * Print frequencies as "x.xx GHz", "xxx KHz", etc as needed; allow for
+ * Print frequencies as "x.xx GHz", "xxx kHz", etc as needed; allow for
  * optional trailing string (like "\n")
  *
  * @freq:      Frequency to print in Hz
index ea9977c..b2025ee 100644 (file)
@@ -54,7 +54,7 @@ void print_freq(uint64_t freq, const char *s)
 {
        unsigned long m = 0;
        uint32_t f;
-       static const char names[] = {'G', 'M', 'K'};
+       static const char names[] = {'G', 'M', 'k'};
        unsigned long d = 1e9;
        char c = 0;
        unsigned int i;