From f9fd19ff7d4f4a7e252000744b6550bfa87c79da Mon Sep 17 00:00:00 2001 From: Avi Weiss Date: Fri, 24 Apr 2026 08:42:58 +0200 Subject: [PATCH] bsp/arm/tms570: align printk-support with rtems formatting guidelines --- bsps/arm/tms570/console/printk-support.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/bsps/arm/tms570/console/printk-support.c b/bsps/arm/tms570/console/printk-support.c index 8f703b9e29..1538daf93f 100644 --- a/bsps/arm/tms570/console/printk-support.c +++ b/bsps/arm/tms570/console/printk-support.c @@ -41,10 +41,13 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include -#include +#include #include #include + +#include +#include + #include #define TMS570_CONSOLE (&driver_context_table[0]) @@ -62,13 +65,13 @@ static void tms570_debug_console_out(char ch) while ( true ) { rtems_interrupt_level level; - while ( ( regs->FLR & TMS570_SCI_FLR_TXRDY ) == 0) { + while ( ( regs->FLR & TMS570_SCI_FLR_TXRDY ) == 0 ) { /* Wait */ } rtems_interrupt_disable( level ); - if ( ( regs->FLR & TMS570_SCI_FLR_TXRDY ) != 0) { + if ( ( regs->FLR & TMS570_SCI_FLR_TXRDY ) != 0 ) { regs->TD = ch; rtems_interrupt_enable( level ); @@ -105,7 +108,7 @@ static void tms570_debug_console_early_init(char c) * @retval -1 No input character is available. * @retval c The received character. */ -static int tms570_debug_console_in( void ) +static int tms570_debug_console_in(void) { tms570_sci_context *ctx = TMS570_CONSOLE; volatile tms570_sci_t *regs = ctx->regs;