Subversion Repositories HelenOS

Rev

Rev 2712 | Rev 4011 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2712 Rev 2745
Line 91... Line 91...
91
 * @return      Number of characters printed.
91
 * @return      Number of characters printed.
92
 */
92
 */
93
static int printf_putnchars(const char * buf, size_t count,
93
static int printf_putnchars(const char * buf, size_t count,
94
    struct printf_spec *ps)
94
    struct printf_spec *ps)
95
{
95
{
96
    return ps->write((void *)buf, count, ps->data);
96
    return ps->write((void *) buf, count, ps->data);
97
}
97
}
98
 
98
 
99
/** Print a string without adding a newline.
99
/** Print a string without adding a newline.
100
 *
100
 *
101
 * @param str       String to print.
101
 * @param str       String to print.
Line 175... Line 175...
175
 * @param precision Precision modifier.
175
 * @param precision Precision modifier.
176
 * @param flags     Flags that modify the way the string is printed.
176
 * @param flags     Flags that modify the way the string is printed.
177
 *
177
 *
178
 * @return      Number of characters printed, negative value on failure.
178
 * @return      Number of characters printed, negative value on failure.
179
 */
179
 */
180
static int print_string(char *s, int width, int precision, uint64_t flags,
180
static int print_string(char *s, int width, unsigned int precision,
181
    struct printf_spec *ps)
181
    uint64_t flags, struct printf_spec *ps)
182
{
182
{
183
    int counter = 0;
183
    int counter = 0;
184
    size_t size;
184
    size_t size;
185
    int retval;
185
    int retval;
186
 
186