mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-05 02:51:00 +00:00
3f351cd358
Check snprintf() return value for errors.
Make microblaze_cpu_get_desc() directly return snprintf() error code if
ret < 0. Otherwise, if the return value is greater than or equal to size,
the resulting string is truncated, so return -ENOSPC.
Fixes:
|
||
---|---|---|
.. | ||
at91_cpu.c | ||
bmips_cpu.c | ||
cpu-uclass.c | ||
cpu_sandbox.c | ||
imx8_cpu.c | ||
Kconfig | ||
Makefile | ||
microblaze_cpu.c | ||
mpc83xx_cpu.c | ||
mpc83xx_cpu.h | ||
riscv_cpu.c |