Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/generic/src/vprintf.c

    rf5e1692 r28a5ebd  
    3636#include <str.h>
    3737
    38 static errno_t vprintf_str_write(const char *str, size_t size, void *data)
     38static int vprintf_str_write(const char *str, size_t size, void *data)
    3939{
    4040        size_t offset = 0;
     41        size_t chars = 0;
    4142
    42         while (offset < size)
     43        while (offset < size) {
    4344                putuchar(str_decode(str, &offset, size));
     45                chars++;
     46        }
    4447
    45         return EOK;
     48        return chars;
    4649}
    4750
     
    6871        };
    6972
    70         return printf_core(fmt, &ps, ap);
     73        int ret = printf_core(fmt, &ps, ap);
     74
     75        return ret;
    7176}
    7277
Note: See TracChangeset for help on using the changeset viewer.