Răsfoiți Sursa

[bsp][lpc55sxx]: update debug log (#8106)

Shicheng Chu 1 an în urmă
părinte
comite
c021c5cd22

+ 1 - 1
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 */

+ 1 - 1
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;
     }
 

+ 1 - 1
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;

+ 1 - 1
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 */