diff --git a/include/sbi_utils/serial/semihosting.h b/include/sbi_utils/serial/semihosting.h index 8cc4a86c..ef4888fc 100644 --- a/include/sbi_utils/serial/semihosting.h +++ b/include/sbi_utils/serial/semihosting.h @@ -38,10 +38,10 @@ enum semihosting_open_mode { #ifdef CONFIG_SERIAL_SEMIHOSTING int semihosting_init(void); -int semihosting_enabled(void); +bool semihosting_enabled(void); #else static inline int semihosting_init(void) { return SBI_ENODEV; } -static inline int semihosting_enabled(void) { return 0; } +static inline bool semihosting_enabled(void) { return false; } #endif #endif