Changeset c0d814a in mainline for kernel/generic/src/printf/vprintf.c
- Timestamp:
- 2025-04-10T20:02:30Z (4 days ago)
- Children:
- b8b031f
- Parents:
- a92290d (diff), 90dd8aee (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Wayne Thornton <wmthornton-dev@…> (2025-04-10 20:02:30)
- git-committer:
- GitHub <noreply@…> (2025-04-10 20:02:30)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/printf/vprintf.c
ra92290d rc0d814a 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.