diff options
author | Jordan Crouse <jordan.crouse@amd.com> | 2008-04-25 23:10:23 +0000 |
---|---|---|
committer | Jordan Crouse <jordan.crouse@amd.com> | 2008-04-25 23:10:23 +0000 |
commit | d772e1e7feb3d782564fe7f46374d4ae8a5f4c36 (patch) | |
tree | 1a75862f60a30dda25324d40404af1015aa52405 /payloads/libpayload/libc | |
parent | 63f181f97c0b89f5fe80f96df7b6288a59f5ad42 (diff) | |
download | coreboot-d772e1e7feb3d782564fe7f46374d4ae8a5f4c36.tar.xz |
libpayload: Fix a small but aggressive bug in printf()
This was causing the returned counter value to be one more then it
should be when printing a single character.
Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Ward Vandewege <ward@gnu.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3271 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/libc')
-rw-r--r-- | payloads/libpayload/libc/printf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/libc/printf.c b/payloads/libpayload/libc/printf.c index 2f1ca8bda6..6972636b23 100644 --- a/payloads/libpayload/libc/printf.c +++ b/payloads/libpayload/libc/printf.c @@ -156,7 +156,7 @@ static int print_char(char c, int width, uint64_t flags, struct printf_spec *ps) ++counter; } - return ++counter; + return counter; } /** |