Changeset 90dd8aee in mainline for kernel/generic/src/printf/vprintf.c
- Timestamp:
- 2025-04-10T17:55:36Z (4 days ago)
- Branches:
- master
- Children:
- 8165a7a, c0d814a
- Parents:
- c55ab66
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2025-04-10 11:33:46)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2025-04-10 17:55:36)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/printf/vprintf.c
rc55ab66 r90dd8aee 33 33 */ 34 34 35 #include <arch/asm.h> 36 #include <console/console.h> 35 37 #include <print.h> 36 38 #include <printf/printf_core.h> 37 39 #include <putchar.h> 40 #include <str.h> 38 41 #include <synch/spinlock.h> 39 #include <arch/asm.h>40 42 #include <typedefs.h> 41 #include <str.h>42 43 43 44 static int vprintf_str_write(const char *str, size_t size, void *data) … … 74 75 char32_t uc; 75 76 77 console_lock(); 78 76 79 while ((uc = str_decode(str, &offset, STR_NO_LIMIT)) != 0) { 77 80 putuchar(uc); … … 80 83 81 84 putuchar('\n'); 85 86 console_unlock(); 82 87 return chars; 83 88 } … … 91 96 }; 92 97 93 return printf_core(fmt, &ps, ap); 98 console_lock(); 99 int ret = printf_core(fmt, &ps, ap); 100 console_unlock(); 101 return ret; 94 102 } 95 103
Note:
See TracChangeset
for help on using the changeset viewer.