Files
mop3/kernel/sys/debug.h
kamkow1 e077d322f4
All checks were successful
Build documentation / build-and-deploy (push) Successful in 35s
Rewrite init app in C, introduce MSL (MOP3 System Library)
2026-01-04 01:11:31 +01:00

14 lines
469 B
C

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