[U-Boot] [PATCH v2 01/14] cmd: cpu: fix NULL cpu feature prints
Simon Glass
sjg at chromium.org
Sun Apr 16 19:34:10 UTC 2017
On 15 April 2017 at 16:03, Álvaro Fernández Rojas <noltari at gmail.com> wrote:
> Commit 740d5d3 added two new features but only one feature name,
> which results in NULL prints when device_id feature is selected.
>
> Before:
> HG556a # cpu detail
> -1: cpu at 0 BCM6358A1
> ID = 0, freq = 300 MHz: L1 cache, MMU, NULL
> Device ID 0x2a010
> -1: cpu at 1 BCM6358A1
> ID = 1, freq = 300 MHz: L1 cache, MMU, NULL
> Device ID 0x2a010
> After:
> HG556a # cpu detail
> -1: cpu at 0 BCM6358A1
> ID = 0, freq = 300 MHz: L1 cache, MMU, Device ID
> Device ID 0x2a010
> -1: cpu at 1 BCM6358A1
> ID = 1, freq = 300 MHz: L1 cache, MMU, Device ID
> Device ID 0x2a010
>
> Signed-off-by: Álvaro Fernández Rojas <noltari at gmail.com>
> ---
> v2: Introduce changes suggested by Daniel Schwierzeck:
> - Add the missing name instead of checking for null names.
>
> cmd/cpu.c | 1 +
> 1 file changed, 1 insertion(+)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list