MCPcopy Create free account
hub / github.com/coreboot/coreboot / printf_putchar

Function printf_putchar

payloads/libpayload/libc/printf.c:110–115  ·  view source on GitHub ↗

* Print one character. * * @param c Character to be printed. * @param ps Output method. * @return Number of characters printed. */

Source from the content-addressed store, hash-verified

108 * @return Number of characters printed.
109 */
110static int printf_putchar(int c, struct printf_spec *ps)
111{
112 char ch = c;
113
114 return ps->write(&ch, 1, ps->data);
115}
116
117/* Print spaces for padding. Ignores negative counts. */
118static int print_spaces(int count, struct printf_spec *ps)

Callers 1

print_charFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected