u-boot/board/xilinx
Michal Simek 07499daf50 xilinx: zynqmp: Do not check 0 as invalid return from snprintf
U-Boot SPL on ZynqMP is using CONFIG_SPL_USE_TINY_PRINTF which doesn't
return any return value and all the time returns 0. That's why
even correct snprintf was returning in SPL chip ID as "unknown".
Change checking condition and allow snprintf to return 0 which is according
manual patch successful return.
"If an output error is encountered, a negative value is returned."

Fixes: 43a138956f7e ("arm64: zynqmp: Get rid of simple_itoa and replace it by snprintf")
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
2020-10-27 08:13:33 +01:00
..
bootscripts xilinx: Add sd boot command script for reference 2019-10-08 09:11:13 +02:00
common xilinx: board: Add FRU decoder support 2020-10-27 08:13:32 +01:00
microblaze-generic microblaze: Setup distro boot env variables at run time 2020-10-27 08:01:36 +01:00
versal xilinx: common: Add Makefile to common folder 2020-10-27 08:13:32 +01:00
zynq xilinx: common: Add Makefile to common folder 2020-10-27 08:13:32 +01:00
zynqmp xilinx: zynqmp: Do not check 0 as invalid return from snprintf 2020-10-27 08:13:33 +01:00
zynqmp_r5 common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
Kconfig xilinx: cmd: Add support for FRU commands 2020-10-27 08:13:32 +01:00