Skip to content

Commit

Permalink
CMake: Minor change to error message
Browse files Browse the repository at this point in the history
Also includes:
* Removal of redundant header files from kdebug.c
  • Loading branch information
coderarjob committed Nov 16, 2024
1 parent bc6b841 commit 269bfe6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if(CMAKE_CROSSCOMPILING)
endif()
else()
if (MOS_BUILD_MODE STREQUAL "DEBUG" OR MOS_PORT_E9_ENABLED)
message(FATAL_ERROR "Unittests should not be build with DEBUG or PORT_E9_ENABLED.")
message(FATAL_ERROR "Unittests should have DEBUG or PORT_E9_ENABLED enabled.")
endif()
endif()

Expand Down
7 changes: 3 additions & 4 deletions src/kernel/x86/kdebug.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@
*/
#include <stdarg.h>
#include <types.h>
#include <x86/io.h>
#include <moslimits.h>
#include <utils.h>
#include <disp.h>
#include <x86/vgatext.h>
#include <kdebug.h>
#include <kernel.h>
#if ARCH == x86
#include <x86/io.h>
#endif

#define ANSI_COL_GRAY "\x1b[90m"
#define ANSI_COL_YELLOW "\x1b[93m"
Expand Down

0 comments on commit 269bfe6

Please sign in to comment.