Changes in kernel/generic/src/printf/vprintf.c [712c4ba:da1bafb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/printf/vprintf.c
r712c4ba rda1bafb 41 41 #include <typedefs.h> 42 42 #include <str.h> 43 44 IRQ_SPINLOCK_STATIC_INITIALIZE_NAME(printf_lock, "*printf_lock"); 43 45 44 46 static int vprintf_str_write(const char *str, size_t size, void *data) … … 91 93 }; 92 94 93 return printf_core(fmt, &ps, ap); 95 irq_spinlock_lock(&printf_lock, true); 96 int ret = printf_core(fmt, &ps, ap); 97 irq_spinlock_unlock(&printf_lock, true); 98 99 return ret; 94 100 } 95 101
Note:
See TracChangeset
for help on using the changeset viewer.