Use clang-format

This commit is contained in:
2025-12-21 22:53:25 +01:00
parent 8794a61073
commit b2d8294b12
36 changed files with 925 additions and 842 deletions

View File

@@ -1,10 +1,11 @@
#ifndef _KERNEL_SYS_DEBUG_H
#define _KERNEL_SYS_DEBUG_H
void debugprintf(const char *fmt, ...);
void debugprintf (const char* fmt, ...);
#define DEBUG(fmt, ...) do { \
debugprintf("%s: " fmt, __func__, ##__VA_ARGS__); \
} while(0)
#define DEBUG(fmt, ...) \
do { \
debugprintf ("%s: " fmt, __func__, ##__VA_ARGS__); \
} while (0)
#endif // _KERNEL_SYS_DEBUG_H

View File

@@ -2,7 +2,7 @@
#define _KERNEL_SYS_MM_H
#if defined(__x86_64__)
#include <amd64/mm.h>
#include <amd64/mm.h>
#endif
#endif // _KERNEL_SYS_MM_H

View File

@@ -1,6 +1,6 @@
#ifndef _KERNEL_SYS_SPIN_LOCK_H
#define _KERNEL_SYS_SPIN_LOCK_H
void spin_lock_relax(void);
void spin_lock_relax (void);
#endif // _KERNEL_SYS_SPIN_LOCK_H