diff options
| author | xin-zheqi <[email protected]> | 2023-04-07 02:50:08 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-04-06 14:50:08 -0400 |
| commit | e79f5057367265544706deda25fb19d1cab8b86c (patch) | |
| tree | 5bd308817f7647f0fa4850402d548422eb670795 | |
| parent | 74eca909573d8d92ae266947b5c60857ddb1280b (diff) | |
[bsp][Infineon]规范输出函数(printf)变量的类型 (#7178)
| -rw-r--r-- | bsp/Infineon/libraries/HAL_Drivers/drv_adc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bsp/Infineon/libraries/HAL_Drivers/drv_adc.c b/bsp/Infineon/libraries/HAL_Drivers/drv_adc.c index cc41856f0e..ea37d23fb9 100644 --- a/bsp/Infineon/libraries/HAL_Drivers/drv_adc.c +++ b/bsp/Infineon/libraries/HAL_Drivers/drv_adc.c @@ -57,7 +57,7 @@ static rt_err_t ifx_adc_enabled(struct rt_adc_device *device, rt_uint32_t channe if (result != RT_EOK) { - LOG_E("ADC initialization failed. Error: %llu\n", (long unsigned int)result); + LOG_E("ADC initialization failed. Error: %u\n", result); return -RT_ENOSYS; } @@ -67,7 +67,7 @@ static rt_err_t ifx_adc_enabled(struct rt_adc_device *device, rt_uint32_t channe if (result != RT_EOK) { - LOG_E("ADC single ended channel initialization failed. Error: %llu\n", (long unsigned int)result); + LOG_E("ADC single ended channel initialization failed. Error: %u\n", result); return -RT_ENOSYS; } @@ -76,7 +76,7 @@ static rt_err_t ifx_adc_enabled(struct rt_adc_device *device, rt_uint32_t channe if (result != RT_EOK) { - printf("ADC configuration update failed. Error: %llu\n", (long unsigned int)result); + printf("ADC configuration update failed. Error: %u\n", result); return -RT_ENOSYS; } } |
