8#ifndef ZEPHYR_INCLUDE_SYS_PRINTK_H_
9#define ZEPHYR_INCLUDE_SYS_PRINTK_H_
16#ifdef CONFIG_LOG_PRINTK_STATIC
49#if defined(CONFIG_PRINTK) || defined(__DOXYGEN__)
51#ifdef CONFIG_LOG_PRINTK_STATIC
56#define printk(...) Z_LOG_PRINTK(0, __VA_ARGS__)
58__printf_like(1, 2) void
printk(const
char *fmt, ...);
69__printf_like(1, 0) void
vprintk(const
char *fmt, va_list ap);
116static inline __printf_like(1, 2) void
printk(const
char *fmt, ...)
121static inline __printf_like(1, 0) void
vprintk(const
char *fmt, va_list ap)
127static inline __printf_like(1, 2) void
printk_unlocked(const
char *fmt, ...)
132static inline __printf_like(1, 0) void
vprintk_unlocked(const
char *fmt, va_list ap)
143#ifdef CONFIG_PICOLIBC
147#define snprintk(...) snprintf(__VA_ARGS__)
148#define vsnprintk(str, size, fmt, ap) vsnprintf(str, size, fmt, ap)
168__printf_like(3, 4) int
snprintk(
char *str,
size_t size,
169 const
char *fmt, ...);
184__printf_like(3, 0)
int vsnprintk(
char *str,
size_t size,
185 const
char *fmt, va_list ap);
Header file for the logging core.
int snprintk(char *str, size_t size, const char *fmt,...)
Print a kernel debugging message to a buffer.
void printk(const char *fmt,...)
Print kernel debugging message.
void printk_unlocked(const char *fmt,...)
Output a string without taking the printk lock.
void printk_panic(void)
Stop printk() taking its lock, for crash reporting.
void vprintk(const char *fmt, va_list ap)
Print kernel debugging message, va_list version.
int vsnprintk(char *str, size_t size, const char *fmt, va_list ap)
Print a kernel debugging message to a buffer, va_list version.
void vprintk_unlocked(const char *fmt, va_list ap)
Output a string without any locking, va_list version.