Changes in kernel/generic/src/printf/vprintf.c [90dd8aee:28a5ebd] in mainline
- File:
- 
      - 1 edited
 
 - 
          
  kernel/generic/src/printf/vprintf.c (modified) (4 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      kernel/generic/src/printf/vprintf.cr90dd8aee r28a5ebd 33 33 */ 34 34 35 #include <arch/asm.h>36 #include <console/console.h>37 35 #include <print.h> 38 36 #include <printf/printf_core.h> 39 37 #include <putchar.h> 38 #include <synch/spinlock.h> 39 #include <arch/asm.h> 40 #include <typedefs.h> 40 41 #include <str.h> 41 #include <synch/spinlock.h>42 #include <typedefs.h>43 42 44 43 static int vprintf_str_write(const char *str, size_t size, void *data) … … 75 74 char32_t uc; 76 75 77 console_lock();78 79 76 while ((uc = str_decode(str, &offset, STR_NO_LIMIT)) != 0) { 80 77 putuchar(uc); … … 83 80 84 81 putuchar('\n'); 85 86 console_unlock();87 82 return chars; 88 83 } … … 96 91 }; 97 92 98 console_lock(); 99 int ret = printf_core(fmt, &ps, ap); 100 console_unlock(); 101 return ret; 93 return printf_core(fmt, &ps, ap); 102 94 } 103 95 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
