vc/cavium/bdk/libdram: Print unknown voltages
commit321daa86efebbe766afa4f6a023ecd6888be6ff8
authorJacob Garber <jgarber1@ualberta.ca>
Thu, 25 Jul 2019 21:45:53 +0000 (25 15:45 -0600)
committerPatrick Georgi <pgeorgi@google.com>
Mon, 29 Jul 2019 06:01:16 +0000 (29 06:01 +0000)
treef4bf877793b67f753eaa742dd059501fe90b36bb
parent336420348eed277f8640fc9c19aa463c2848650d
vc/cavium/bdk/libdram: Print unknown voltages

volt_str is used to print information about the RAM configuration
in report_common_dimm(), so let's print out "unknown voltage" if the
voltage isn't recognized rather than a garbage value.

Change-Id: I8e85917fd682e166172fbf10597bde4a8a11dfc7
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Found-by: Coverity CID 1393958, 1393982
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34576
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
src/vendorcode/cavium/bdk/libdram/dram-spd.c