Skip to content

Commit 865cab5

Browse files
committed
use rt_va_list replace va_list
1 parent 8a3d8b6 commit 865cab5

File tree

35 files changed

+75
-75
lines changed

35 files changed

+75
-75
lines changed

bsp/amebaz/drivers/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ extern int __rtt_heap_start;
2828
#ifdef __GNUC__
2929
void __wrap_rtl_printf(const char *fmt, ...)
3030
{
31-
va_list args;
31+
rt_va_list args;
3232
rt_size_t length;
3333
static char rt_log_buf[RT_CONSOLEBUF_SIZE];
3434

bsp/bluetrum/ab32vg1-ab-prougen/board/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void hal_printf(const char *fmt, ...)
3535
{
3636
rt_device_t console = rt_console_get_device();
3737

38-
va_list args;
38+
rt_va_list args;
3939
rt_size_t length;
4040
static char rt_log_buf[RT_CONSOLEBUF_SIZE];
4141

bsp/nxp/lpc/lpc55sxx/lpc55s69_nxp_evk/board/ports/easyflash/ef_fal_port.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ void ef_log_debug(const char *file, const long line, const char *format, ...) {
140140

141141
#ifdef PRINT_DEBUG
142142

143-
va_list args;
143+
rt_va_list args;
144144

145145
/* args point to the first variable parameter */
146146
va_start(args, format);
@@ -161,7 +161,7 @@ void ef_log_debug(const char *file, const long line, const char *format, ...) {
161161
* @param ... args
162162
*/
163163
void ef_log_info(const char *format, ...) {
164-
va_list args;
164+
rt_va_list args;
165165

166166
/* args point to the first variable parameter */
167167
va_start(args, format);
@@ -178,7 +178,7 @@ void ef_log_info(const char *format, ...) {
178178
* @param ... args
179179
*/
180180
void ef_print(const char *format, ...) {
181-
va_list args;
181+
rt_va_list args;
182182

183183
/* args point to the first variable parameter */
184184
va_start(args, format);

bsp/stm32/stm32f407-lckfb-skystar/board/ports/ef_fal_port.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ void ef_log_debug(const char *file, const long line, const char *format, ...) {
161161

162162
#ifdef PRINT_DEBUG
163163

164-
va_list args;
164+
rt_va_list args;
165165

166166
/* args point to the first variable parameter */
167167
va_start(args, format);
@@ -182,7 +182,7 @@ void ef_log_debug(const char *file, const long line, const char *format, ...) {
182182
* @param ... args
183183
*/
184184
void ef_log_info(const char *format, ...) {
185-
va_list args;
185+
rt_va_list args;
186186

187187
/* args point to the first variable parameter */
188188
va_start(args, format);
@@ -199,7 +199,7 @@ void ef_log_info(const char *format, ...) {
199199
* @param ... args
200200
*/
201201
void ef_print(const char *format, ...) {
202-
va_list args;
202+
rt_va_list args;
203203

204204
/* args point to the first variable parameter */
205205
va_start(args, format);

bsp/stm32/stm32f407-rt-spark/board/ports/ef_fal_port.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ void ef_log_debug(const char *file, const long line, const char *format, ...) {
161161

162162
#ifdef PRINT_DEBUG
163163

164-
va_list args;
164+
rt_va_list args;
165165

166166
/* args point to the first variable parameter */
167167
va_start(args, format);
@@ -182,7 +182,7 @@ void ef_log_debug(const char *file, const long line, const char *format, ...) {
182182
* @param ... args
183183
*/
184184
void ef_log_info(const char *format, ...) {
185-
va_list args;
185+
rt_va_list args;
186186

187187
/* args point to the first variable parameter */
188188
va_start(args, format);
@@ -199,7 +199,7 @@ void ef_log_info(const char *format, ...) {
199199
* @param ... args
200200
*/
201201
void ef_print(const char *format, ...) {
202-
va_list args;
202+
rt_va_list args;
203203

204204
/* args point to the first variable parameter */
205205
va_start(args, format);

bsp/stm32/stm32f407-rt-spark/board/ports/lcd/drv_lcd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ rt_err_t lcd_show_string(rt_uint16_t x, rt_uint16_t y, rt_uint32_t size, const c
868868
{
869869
#define LCD_STRING_BUF_LEN 128
870870

871-
va_list args;
871+
rt_va_list args;
872872
rt_uint8_t buf[LCD_STRING_BUF_LEN] = {0};
873873
rt_uint8_t *p = RT_NULL;
874874

bsp/stm32/stm32h750-artpi/board/port/drv_spi_ili9488.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ rt_err_t lcd_show_string(rt_uint16_t x, rt_uint16_t y, rt_uint32_t size, const c
843843
{
844844
#define LCD_STRING_BUF_LEN 128
845845

846-
va_list args;
846+
rt_va_list args;
847847
rt_uint8_t buf[LCD_STRING_BUF_LEN] = {0};
848848
rt_uint8_t *p = RT_NULL;
849849

bsp/stm32/stm32h750-artpi/board/port/ef_fal_port.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ void ef_log_debug(const char *file, const long line, const char *format, ...) {
159159

160160
#ifdef PRINT_DEBUG
161161

162-
va_list args;
162+
rt_va_list args;
163163

164164
/* args point to the first variable parameter */
165165
va_start(args, format);
@@ -180,7 +180,7 @@ void ef_log_debug(const char *file, const long line, const char *format, ...) {
180180
* @param ... args
181181
*/
182182
void ef_log_info(const char *format, ...) {
183-
va_list args;
183+
rt_va_list args;
184184

185185
/* args point to the first variable parameter */
186186
va_start(args, format);
@@ -197,7 +197,7 @@ void ef_log_info(const char *format, ...) {
197197
* @param ... args
198198
*/
199199
void ef_print(const char *format, ...) {
200-
va_list args;
200+
rt_va_list args;
201201

202202
/* args point to the first variable parameter */
203203
va_start(args, format);

bsp/stm32/stm32l431-BearPi/board/ports/lcd/drv_lcd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ rt_err_t lcd_show_string(rt_uint16_t x, rt_uint16_t y, rt_uint32_t size, const c
756756
{
757757
#define LCD_STRING_BUF_LEN 128
758758

759-
va_list args;
759+
rt_va_list args;
760760
rt_uint8_t buf[LCD_STRING_BUF_LEN] = {0};
761761
rt_uint8_t *p = RT_NULL;
762762

bsp/stm32/stm32l475-atk-pandora/board/ports/easyflash/ef_fal_port.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ void ef_log_debug(const char *file, const long line, const char *format, ...) {
141141

142142
#ifdef PRINT_DEBUG
143143

144-
va_list args;
144+
rt_va_list args;
145145

146146
/* args point to the first variable parameter */
147147
va_start(args, format);
@@ -162,7 +162,7 @@ void ef_log_debug(const char *file, const long line, const char *format, ...) {
162162
* @param ... args
163163
*/
164164
void ef_log_info(const char *format, ...) {
165-
va_list args;
165+
rt_va_list args;
166166

167167
/* args point to the first variable parameter */
168168
va_start(args, format);
@@ -179,7 +179,7 @@ void ef_log_info(const char *format, ...) {
179179
* @param ... args
180180
*/
181181
void ef_print(const char *format, ...) {
182-
va_list args;
182+
rt_va_list args;
183183

184184
/* args point to the first variable parameter */
185185
va_start(args, format);

0 commit comments

Comments
 (0)