From 22c2c17915ba3f18d958bbf2c2f2c7facf2194cf Mon Sep 17 00:00:00 2001 From: Álvaro Fernández Rojas Date: Tue, 25 Apr 2017 00:39:13 +0200 Subject: cmd: cpu: fix NULL cpu feature prints 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@0 BCM6358A1 ID = 0, freq = 300 MHz: L1 cache, MMU, NULL Device ID 0x2a010 -1: cpu@1 BCM6358A1 ID = 1, freq = 300 MHz: L1 cache, MMU, NULL Device ID 0x2a010 After: HG556a # cpu detail -1: cpu@0 BCM6358A1 ID = 0, freq = 300 MHz: L1 cache, MMU, Device ID Device ID 0x2a010 -1: cpu@1 BCM6358A1 ID = 1, freq = 300 MHz: L1 cache, MMU, Device ID Device ID 0x2a010 Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- cmd/cpu.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd') diff --git a/cmd/cpu.c b/cmd/cpu.c index bc4dc5c529b..adfd54a5799 100644 --- a/cmd/cpu.c +++ b/cmd/cpu.c @@ -15,6 +15,7 @@ static const char *cpu_feature_name[CPU_FEAT_COUNT] = { "L1 cache", "MMU", "Microcode", + "Device ID", }; static int print_cpu_list(bool detail) -- cgit v1.2.3