From 85a94437048e85aa97991899abbdd0cc927ca671 Mon Sep 17 00:00:00 2001 From: trimill Date: Sat, 3 Feb 2024 21:05:27 -0500 Subject: formatting --- include/backtrace.h | 2 +- include/fpu.h | 2 +- include/lib.h | 2 +- include/panic.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/backtrace.h b/include/backtrace.h index 913e256..6a2e649 100644 --- a/include/backtrace.h +++ b/include/backtrace.h @@ -10,7 +10,7 @@ size_t backtrace(void **dst, size_t len); size_t backtrace_ex(void **dst, size_t len, void *ip, void *bp); // Log a backtrace -void log_backtrace(); +void log_backtrace(void); // same as log_backtrace with specified insruction and base pointer void log_backtrace_ex(void *ip, void *bp); diff --git a/include/fpu.h b/include/fpu.h index 88dfe47..9f094c2 100644 --- a/include/fpu.h +++ b/include/fpu.h @@ -1,3 +1,3 @@ #pragma once -void enable_fpu(); +void enable_fpu(void); diff --git a/include/lib.h b/include/lib.h index b5f6ccc..c2adc5c 100644 --- a/include/lib.h +++ b/include/lib.h @@ -324,7 +324,7 @@ unsigned long long int strtoull(const char *str, char **endptr, int base); * - If the value has two or three decimal digits, print it followed by the * approprate suffix. * - If the value has one decimal digit, print it along with a single fractional - * digit. This also applies if the value is zero. + * digit. This also applies if the value is zero. * * @param bytes - the bytes to convert * @param buf - a pointer to the buffer to store it in (which must be at least five diff --git a/include/panic.h b/include/panic.h index b79c352..66ea245 100644 --- a/include/panic.h +++ b/include/panic.h @@ -4,7 +4,7 @@ #define _PANIC_STR2(x) #x #define panic(...) _panic_impl(_PANIC_STR(__LINE__), __FILE__, __VA_ARGS__) -#define kassert(val, ...) do { if (!(val)) { panic(__VA_ARGS__); } } while(0) +#define kassert(val, ...) do { if (!(val)) { panic(__VA_ARGS__); } } while (0) __attribute__((format(printf, 3, 4))) _Noreturn void _panic_impl(char *line, char *file, char *format, ...); -- cgit v1.2.3-freya