Comments (5)
#define rt_kprintf(...)
VA_ARGS在不同的编译器上面并不一定兼容。
from rt-thread.
就目前所知 GCC 、IAR、ARM CC都支持 VA_ARGS。
经过测试,这样做下来可以节省差不多10KB的程序空间。
from rt-thread.
这个挺好的,那么在头文件中更改下,更改成:
#ifndef RT_USING_CONSOLE
#define rt_kprintf(...)
#else
....
#endif
谢谢反馈。
from rt-thread.
commit时,日志写上 #XX 就可以关联issues了,如“fix spelling error by ziyi897, this commit fixes #74."
详见: http://gfreezy.github.io/blog/2011/11/24/githubzheng-he-pull-requesthe-issue/
from rt-thread.
问题已修复: 0bb5eb1
from rt-thread.
Related Issues (20)
- 异步I/O的aio_write函数
- [bsp] loongson 下 ls2kdev 链接时报错 undefined reference to `sbrk' HOT 1
- v5.1.1 需要推进的点 HOT 6
- 5.0.2版本stm32f103-100ask-pro的spi_flash_init.c缺少#include "drv_gpio.h" HOT 2
- [drv_eth] STM32以太网BSP驱动的PHY物理地址问题 HOT 1
- rt_can_read memory write out of boundary HOT 1
- RTThread不支持 STM32CUBEMX 生成的Advanced工程,只支持Basic工程。
- RT-thread 移植到RISC-V裸片的问题 HOT 1
- shell.c 文件中finsh_get_prompt()函数使用strcat()函数会造成数据访问异常 HOT 1
- [msh] 自动补全子选项 没有使用说明与注释
- [finsh] finsh_syscall_lookup是否应该删除
- 使用DUO开发板,编译RT-Thread大核时编译不过 HOT 2
- [ipc]负值不明确的转换导致编译警告
- [mem]MIN_SIZE宏定义 不易于理解 HOT 1
- 关于LWP的修改带来的问题 HOT 6
- 使用RT-Studio生产的STM32F407VE工程运行一段时间后自动停止, update -> 发现是串口无法持续输出 HOT 11
- 目前不使用设备树的aarch64 BSP不能使用PSCI方案管理CPU,能否针对这种情况做一下兼容呢? HOT 5
- rt-thread/bsp/qemu-vexpress-a9下编译失败 HOT 1
- bsp/renesas/rzt2m_rsk bsp目录是否可以优化一下? HOT 5
- 关于野火霸道开发版的bsp包,本地编译后显示Undefined symbol rt_condvar_init (referred from pipe.o)问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rt-thread.