X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=payloads%2Flibpayload%2Flibc%2Fprintf.c;fp=payloads%2Flibpayload%2Flibc%2Fprintf.c;h=3973e90f22b48ed7eedf2f9fac579c4d9b7cb90e;hb=54ec0afc1c5fa711d94e5e22b05f3bd7abfaab72;hp=6972636b2365a4c817ce516b6840f57cc18e8e94;hpb=1d129fe2db0b8f7dab253768b8635f4c3c8c0f64;p=coreboot.git diff --git a/payloads/libpayload/libc/printf.c b/payloads/libpayload/libc/printf.c index 6972636b2..3973e90f2 100644 --- a/payloads/libpayload/libc/printf.c +++ b/payloads/libpayload/libc/printf.c @@ -135,6 +135,7 @@ static int printf_putchar(int c, struct printf_spec *ps) * @param c Character to print. * @param width Width modifier. * @param flags Flags that change the way the character is printed. + * @param ps Output methods spec for different printf clones. * @return Number of characters printed, negative value on failure. */ static int print_char(char c, int width, uint64_t flags, struct printf_spec *ps) @@ -166,8 +167,10 @@ static int print_char(char c, int width, uint64_t flags, struct printf_spec *ps) * @param width Width modifier. * @param precision Precision modifier. * @param flags Flags that modify the way the string is printed. + * @param ps Output methods spec for different printf clones. * @return Number of characters printed, negative value on failure. */ +/** Structure for specifying output methods for different printf clones. */ static int print_string(char *s, int width, unsigned int precision, uint64_t flags, struct printf_spec *ps) { @@ -207,10 +210,11 @@ static int print_string(char *s, int width, unsigned int precision, * Print significant digits of a number in given base. * * @param num Number to print. - * @param widt Width modifier.h + * @param width Width modifier.h * @param precision Precision modifier. * @param base Base to print the number in (must be between 2 and 16). * @param flags Flags that modify the way the number is printed. + * @param ps Output methods spec for different printf clones. * @return Number of characters printed. */ static int print_number(uint64_t num, int width, int precision, int base, @@ -359,7 +363,8 @@ static int print_number(uint64_t num, int width, int precision, int base, return counter; } -/** Print formatted string. +/** + * Print formatted string. * * Print string formatted according to the fmt parameter and variadic arguments. * Each formatting directive must have the following form: