summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2020-10-21 12:17:44 +0200
committerMichal Simek <michal.simek@xilinx.com>2020-10-27 08:13:33 +0100
commit07499daf507cecbe85e959d54aa1b6972905d8c7 (patch)
tree9d8e12eb87fbd4337a03da83f88a6a8a3b1c1c00 /scripts
parent16df2f1edb82124e21da32404771d8947882ebe2 (diff)
downloadu-boot-07499daf507cecbe85e959d54aa1b6972905d8c7.tar.gz
u-boot-07499daf507cecbe85e959d54aa1b6972905d8c7.tar.xz
u-boot-07499daf507cecbe85e959d54aa1b6972905d8c7.zip
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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions