Rev 1271 | Rev 1604 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1271 | Rev 1273 | ||
---|---|---|---|
Line 460... | Line 460... | ||
460 | * @return Number of printed characters or negative value on failure. |
460 | * @return Number of printed characters or negative value on failure. |
461 | */ |
461 | */ |
462 | int printf_core(const char *fmt, struct printf_spec *ps, va_list ap) |
462 | int printf_core(const char *fmt, struct printf_spec *ps, va_list ap) |
463 | { |
463 | { |
464 | int irqpri; |
464 | int irqpri; |
465 | int i = 0, j = 0; /* i is index of currently processed char from fmt, j is index to the first not printed nonformating character */ |
465 | int i = 0, j = 0; /**< i is index of currently processed char from fmt, j is index to the first not printed nonformating character */ |
466 | int end; |
466 | int end; |
467 | int counter; /* counter of printed characters */ |
467 | int counter; /**< counter of printed characters */ |
468 | int retval; /* used to store return values from called functions */ |
468 | int retval; /**< used to store return values from called functions */ |
469 | char c; |
469 | char c; |
470 | qualifier_t qualifier; /* type of argument */ |
470 | qualifier_t qualifier; /* type of argument */ |
471 | int base; /* base in which will be parameter (numbers only) printed */ |
471 | int base; /**< base in which will be parameter (numbers only) printed */ |
472 | __u64 number; /* argument value */ |
472 | __u64 number; /**< argument value */ |
473 | size_t size; /* byte size of integer parameter */ |
473 | size_t size; /**< byte size of integer parameter */ |
474 | int width, precision; |
474 | int width, precision; |
475 | __u64 flags; |
475 | __u64 flags; |
476 | 476 | ||
477 | counter = 0; |
477 | counter = 0; |
478 | 478 |