Changeset db24058 in mainline for uspace/lib/libc/include/stdio.h
- Timestamp:
- 2009-06-30T15:53:15Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2d11a7d8
- Parents:
- 6db6fd1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/include/stdio.h
r6db6fd1 rdb24058 38 38 #include <sys/types.h> 39 39 #include <stdarg.h> 40 #include <string.h> 40 41 #include <adt/list.h> 41 42 … … 43 44 44 45 /** Default size for stream I/O buffers */ 45 #define BUFSIZ 409646 #define BUFSIZ 4096 46 47 47 48 #define DEBUG(fmt, ...) \ 48 { \49 charbuf[256]; \50 int n = snprintf(buf, sizeof(buf), fmt, ##__VA_ARGS__); \51 if (n > 0) \52 (void) __SYSCALL3(SYS_KLOG, 1, (sysarg_t) buf, str_size(buf)); \53 }49 { \ 50 char _buf[256]; \ 51 int _n = snprintf(_buf, sizeof(_buf), fmt, ##__VA_ARGS__); \ 52 if (_n > 0) \ 53 (void) __SYSCALL3(SYS_KLOG, 1, (sysarg_t) _buf, str_size(_buf)); \ 54 } 54 55 55 56 #ifndef SEEK_SET
Note:
See TracChangeset
for help on using the changeset viewer.