Lines Matching refs:flags

137 		int flags, char *buf, size_t buf_size, const char *fmt, va_list args) /* {{{ */  in zlog_external()  argument
149 external_logger(flags & ZLOG_LEVEL_MASK, buf, len); in zlog_external()
154 const char *function, int line, int flags, in zlog_buf_prefix() argument
164 level_names[flags & ZLOG_LEVEL_MASK], function, line); in zlog_buf_prefix()
166 len += snprintf(buf, buf_size, "[%s] ", level_names[flags & ZLOG_LEVEL_MASK]); in zlog_buf_prefix()
178 level_names[flags & ZLOG_LEVEL_MASK], getpid(), function, line); in zlog_buf_prefix()
181 level_names[flags & ZLOG_LEVEL_MASK], function, line); in zlog_buf_prefix()
185 level_names[flags & ZLOG_LEVEL_MASK]); in zlog_buf_prefix()
193 void vzlog(const char *function, int line, int flags, const char *fmt, va_list args) /* {{{ */ in vzlog() argument
202 zlog_external(flags, buf, buf_size, fmt, args); in vzlog()
205 if ((flags & ZLOG_LEVEL_MASK) < zlog_level) { in vzlog()
210 len = zlog_buf_prefix(function, line, flags, buf, buf_size, zlog_fd == ZLOG_SYSLOG); in vzlog()
222 if (flags & ZLOG_HAVE_ERRNO) { in vzlog()
248 !launched && (flags & ZLOG_LEVEL_MASK) >= ZLOG_NOTICE) { in vzlog()
254 void zlog_ex(const char *function, int line, int flags, const char *fmt, ...) /* {{{ */ in zlog_ex() argument
258 vzlog(function, line, flags, fmt, args); in zlog_ex()
265 struct zlog_stream *stream, int flags, size_t capacity, int fd);
267 void zlog_msg_ex(const char *function, int line, int flags, in zlog_msg_ex() argument
274 zlog_stream_init_internal(&stream, flags, msg_len + prefix_len, 0); in zlog_msg_ex()
454 external_logger(stream->flags & ZLOG_LEVEL_MASK, in zlog_stream_buf_flush()
513 struct zlog_stream *stream, int flags, size_t capacity, int fd) /* {{{ */ in zlog_stream_init_internal() argument
520 stream->flags = flags; in zlog_stream_init_internal()
528 (flags & ZLOG_LEVEL_MASK) >= ZLOG_NOTICE in zlog_stream_init_internal()
530 stream->prefix_buffer = (flags & ZLOG_LEVEL_MASK) >= zlog_level && in zlog_stream_init_internal()
536 void zlog_stream_init(struct zlog_stream *stream, int flags) /* {{{ */ in zlog_stream_init() argument
538 zlog_stream_init_internal(stream, flags, 1024, 0); in zlog_stream_init()
542 void zlog_stream_init_ex(struct zlog_stream *stream, int flags, int fd) /* {{{ */ in zlog_stream_init_ex() argument
544 zlog_stream_init_internal(stream, flags, 1024, fd); in zlog_stream_init_ex()
685 function, line, stream->flags, in zlog_stream_prefix_ex()
698 len = zlog_buf_prefix(function, line, stream->flags, sbuf, 1024, stream->use_syslog); in zlog_stream_prefix_ex()