Subversion Repositories HelenOS

Rev

Rev 4347 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4347 Rev 4348
Line 47... Line 47...
47
{ \
47
{ \
48
    char buf[256]; \
48
    char buf[256]; \
49
    int n; \
49
    int n; \
50
    n = snprintf(buf, sizeof(buf), fmt, ##__VA_ARGS__); \
50
    n = snprintf(buf, sizeof(buf), fmt, ##__VA_ARGS__); \
51
    if (n > 0) \
51
    if (n > 0) \
52
        (void) __SYSCALL3(SYS_KLOG, 1, (sysarg_t) buf, strlen(buf)); \
52
        (void) __SYSCALL3(SYS_KLOG, 1, (sysarg_t) buf, str_size(buf)); \
53
}
53
}
54
 
54
 
55
typedef struct {
55
typedef struct {
56
    /** Underlying file descriptor. */
56
    /** Underlying file descriptor. */
57
    int fd;
57
    int fd;