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:
@ -156,7 +156,7 @@ static int print_char(char c, int width, uint64_t flags, struct printf_spec *ps)
|
||||
++counter;
|
||||
}
|
||||
|
||||
return ++counter;
|
||||
return counter;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user