Changes in uspace/lib/c/include/stdio.h [a801688b:d4d74dc] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/stdio.h
ra801688b rd4d74dc 39 39 #include <stdarg.h> 40 40 #include <str.h> 41 #include <io/verify.h> 42 #include <abi/klog.h> 41 42 #ifndef NVERIFY_PRINTF 43 44 #define PRINTF_ATTRIBUTE(start, end) \ 45 __attribute__((format(gnu_printf, start, end))) 46 47 #else /* NVERIFY_PRINTF */ 48 49 #define PRINTF_ATTRIBUTE(start, end) 50 51 #endif /* NVERIFY_PRINTF */ 43 52 44 53 #define EOF (-1) … … 52 61 int _n = snprintf(_buf, sizeof(_buf), fmt, ##__VA_ARGS__); \ 53 62 if (_n > 0) \ 54 (void) __SYSCALL3(SYS_KLOG, KLOG_WRITE, (sysarg_t) _buf, str_size(_buf)); \63 (void) __SYSCALL3(SYS_KLOG, 1, (sysarg_t) _buf, str_size(_buf)); \ 55 64 } 56 65
Note:
See TracChangeset
for help on using the changeset viewer.