Changeset 1569a9b in mainline for uspace/lib/c/include/io/klog.h
- Timestamp:
- 2017-12-24T16:40:33Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 48fd597
- Parents:
- a1026da
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-24 16:40:33)
- git-committer:
- GitHub <noreply@…> (2017-12-24 16:40:33)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/io/klog.h
ra1026da r1569a9b 49 49 #define KLOG_PRINTF(lvl, fmt, ...) ({ \ 50 50 char *_s; \ 51 int _ c = asprintf(&_s, fmt, ##__VA_ARGS__); \52 if ( _c>= 0) { \53 _ c = klog_write((lvl), _s, str_size(_s)); \51 int _rc = ENOMEM; \ 52 if (asprintf(&_s, fmt, ##__VA_ARGS__) >= 0) { \ 53 _rc = klog_write((lvl), _s, str_size(_s)); \ 54 54 free(_s); \ 55 55 }; \ 56 (_ c >= 0); \56 (_rc != EOK); \ 57 57 }) 58 58
Note:
See TracChangeset
for help on using the changeset viewer.