Changeset da1bafb in mainline for kernel/generic/src/printf/vprintf.c
- Timestamp:
- 2010-05-24T18:57:31Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0095368
- Parents:
- 666f492
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/printf/vprintf.c
r666f492 rda1bafb 42 42 #include <str.h> 43 43 44 SPINLOCK_STATIC_INITIALIZE_NAME(printf_lock, "*printf_lock");44 IRQ_SPINLOCK_STATIC_INITIALIZE_NAME(printf_lock, "*printf_lock"); 45 45 46 46 static int vprintf_str_write(const char *str, size_t size, void *data) … … 93 93 }; 94 94 95 ipl_t ipl = interrupts_disable(); 96 spinlock_lock(&printf_lock); 97 95 irq_spinlock_lock(&printf_lock, true); 98 96 int ret = printf_core(fmt, &ps, ap); 99 100 spinlock_unlock(&printf_lock); 101 interrupts_restore(ipl); 97 irq_spinlock_unlock(&printf_lock, true); 102 98 103 99 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.