diff --git a/hb/common/include/debug_file.h b/hb/common/include/debug_file.h index 4660cd87b..29dbf689e 100644 --- a/hb/common/include/debug_file.h +++ b/hb/common/include/debug_file.h @@ -20,12 +20,9 @@ #define DEBUG_FILE_H #include "my_fat.h" -#include "hex.h" u32 dbg_printf(const char* message); -static inline u32 dbg_hexa(u32 n) { - return dbg_printf(tohex(n)); -} -void enableDebug(const aFile* debugFileCluster); +u32 dbg_hexa(u32 n); +void enableDebug(aFile debugFileCluster); #endif // DEBUG_FILE_H diff --git a/hb/common/source/debug_file.c b/hb/common/source/debug_file.c index cd85ecd2e..d409c00ea 100644 --- a/hb/common/source/debug_file.c +++ b/hb/common/source/debug_file.c @@ -21,6 +21,7 @@ #include #include #include "my_fat.h" +#include "hex.h" static bool _debug = false; static aFile _debugFileCluster; @@ -45,4 +46,8 @@ u32 dbg_printf(const char* message) { return ret; } +u32 dbg_hexa(u32 n) { + return dbg_printf(tohex(n)); +} + #endif \ No newline at end of file diff --git a/retail/common/include_fat/debug_file.h b/retail/common/include_fat/debug_file.h index 4660cd87b..cd683b4c7 100644 --- a/retail/common/include_fat/debug_file.h +++ b/retail/common/include_fat/debug_file.h @@ -20,12 +20,9 @@ #define DEBUG_FILE_H #include "my_fat.h" -#include "hex.h" u32 dbg_printf(const char* message); -static inline u32 dbg_hexa(u32 n) { - return dbg_printf(tohex(n)); -} +u32 dbg_hexa(u32 n); void enableDebug(const aFile* debugFileCluster); #endif // DEBUG_FILE_H diff --git a/retail/common/source/debug_file.c b/retail/common/source/debug_file.c index da9c85e6f..650939dae 100644 --- a/retail/common/source/debug_file.c +++ b/retail/common/source/debug_file.c @@ -19,6 +19,7 @@ #include #include #include "my_fat.h" +#include "hex.h" static bool _debug = false; static aFile _debugFileCluster; @@ -44,3 +45,7 @@ u32 dbg_printf(const char* message) { return ret; } + +u32 dbg_hexa(u32 n) { + return dbg_printf(tohex(n)); +}