Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/printf/vprintf.c

    r90dd8aee r28a5ebd  
    3333 */
    3434
    35 #include <arch/asm.h>
    36 #include <console/console.h>
    3735#include <print.h>
    3836#include <printf/printf_core.h>
    3937#include <putchar.h>
     38#include <synch/spinlock.h>
     39#include <arch/asm.h>
     40#include <typedefs.h>
    4041#include <str.h>
    41 #include <synch/spinlock.h>
    42 #include <typedefs.h>
    4342
    4443static int vprintf_str_write(const char *str, size_t size, void *data)
     
    7574        char32_t uc;
    7675
    77         console_lock();
    78 
    7976        while ((uc = str_decode(str, &offset, STR_NO_LIMIT)) != 0) {
    8077                putuchar(uc);
     
    8380
    8481        putuchar('\n');
    85 
    86         console_unlock();
    8782        return chars;
    8883}
     
    9691        };
    9792
    98         console_lock();
    99         int ret = printf_core(fmt, &ps, ap);
    100         console_unlock();
    101         return ret;
     93        return printf_core(fmt, &ps, ap);
    10294}
    10395
Note: See TracChangeset for help on using the changeset viewer.