summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-11-29 07:47:02 -0600
committerTom Rini <trini@konsulko.com>2024-11-29 07:47:02 -0600
commit98dd010b311e68b8398428cadf56a6381f7de202 (patch)
treed77191fdec08fe8d5ab502f5181e231f0411799a /lib
parent62224280d9e89648ae90346c0aede76f9b7e7610 (diff)
parentbf424a110dc6180b65e6cdf05897428ca7cac98d (diff)
Merge tag 'u-boot-at91-2025.04-a' of https://source.denx.de/u-boot/custodians/u-boot-at91 into next
- at91 gpio driver function alternate mode for pins - assorted fixes.
Diffstat (limited to 'lib')
-rw-r--r--lib/tiny-printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tiny-printf.c b/lib/tiny-printf.c
index cc1dfe61cf7..0503c17341f 100644
--- a/lib/tiny-printf.c
+++ b/lib/tiny-printf.c
@@ -312,7 +312,7 @@ static int _vprintf(struct printf_info *info, const char *fmt, va_list va)
*info->bf = 0;
info->bf = p;
- while (*info->bf++ && width > 0)
+ while (width > 0 && info->bf && *info->bf++)
width--;
while (width-- > 0)
info->putc(info, lz ? '0' : ' ');