diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_adc.c b/bsp/lpc55sxx/Libraries/drivers/drv_adc.c index 65e9dda1a79..3c3b8a7b5b1 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_adc.c +++ b/bsp/lpc55sxx/Libraries/drivers/drv_adc.c @@ -96,7 +96,7 @@ int rt_hw_adc_init(void) if (result != RT_EOK) { - LOG_E("register adc0 device failed error code = %d\n", result); + LOG_E("register adc0 device failed error code = %d", result); } #endif /* BSP_USING_ADC0_CH0 */ diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_gt911.c b/bsp/lpc55sxx/Libraries/drivers/drv_gt911.c index f2d9a509b49..711a63471f9 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_gt911.c +++ b/bsp/lpc55sxx/Libraries/drivers/drv_gt911.c @@ -181,7 +181,7 @@ int drv_capt_hw_init(void) capt_obj.bus = (struct rt_i2c_bus_device*)rt_device_find(BSP_TOUCH_I2C_BUS); if(capt_obj.bus == RT_NULL) { - LOG_E("no %s device\r\n", BSP_TOUCH_I2C_BUS); + LOG_E("no %s device", BSP_TOUCH_I2C_BUS); return -RT_ERROR; } diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_st7796.c b/bsp/lpc55sxx/Libraries/drivers/drv_st7796.c index cd306864f36..823bed261b4 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_st7796.c +++ b/bsp/lpc55sxx/Libraries/drivers/drv_st7796.c @@ -322,7 +322,7 @@ int drv_st7796_init(void) lcd_spi_obj.spi_dev = (struct rt_spi_device *)rt_device_find(LCD_DEVICE_NAME); if (!lcd_spi_obj.spi_dev) { - LOG_E("lcd init run failed! can't find %s device!\n", LCD_DEVICE_NAME); + LOG_E("lcd init run failed! can't find %s device!", LCD_DEVICE_NAME); return -RT_ERROR; } struct rt_spi_configuration cfg; diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_wdt.c b/bsp/lpc55sxx/Libraries/drivers/drv_wdt.c index 51f8f93ff93..d58cf3d884e 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_wdt.c +++ b/bsp/lpc55sxx/Libraries/drivers/drv_wdt.c @@ -235,7 +235,7 @@ int rt_hw_wdt_init(void) if (ret != RT_EOK) { - LOG_E("rt device register failed %d\n", ret); + LOG_E("rt device register failed %d", ret); } #endif /* BSP_USING_WDT */