Files
mop3/kernel/sys/debug.h
kamkow1 c8fb575bdd
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 2m7s
Build documentation / build-and-deploy (push) Successful in 39s
Change formatting rules
2026-04-24 01:54:48 +02:00

21 lines
834 B
C

#ifndef _KERNEL_SYS_DEBUG_H
#define _KERNEL_SYS_DEBUG_H
#include <sys/smp.h>
void debugprintf(const char* fmt, ...);
void debugprintf_nolock(const char* fmt, ...);
#define DEBUG(fmt, ...) \
do { \
debugprintf("(CPU %u) %s:%d: " fmt, thiscpu->id, __func__, __LINE__, ##__VA_ARGS__); \
} while (0)
#define DEBUG_NOLOCK(fmt, ...) \
do { \
debugprintf_nolock("(CPU %u) %s:%d: " fmt, thiscpu->id, __func__, __LINE__, ##__VA_ARGS__); \
} while (0)
#endif // _KERNEL_SYS_DEBUG_H