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
This commit is contained in:
Jordan Crouse 2008-04-25 23:10:23 +00:00
parent 63f181f97c
commit d772e1e7fe
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ static int print_char(char c, int width, uint64_t flags, struct printf_spec *ps)
++counter;
}
return ++counter;
return counter;
}
/**