mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-19 21:36:30 +00:00
fix: remove useless c code (#1116)
* fix: remove useless c code remove printk.c file remove old test_ebpf file implement `lookup_kallsyms` and `addr_from_symbol` using rust * fix the weak linkage * feat(kernel): 添加cfg-if依赖并优化panic模块的条件编译 Signed-off-by: longjin <longjin@DragonOS.org> --------- Signed-off-by: longjin <longjin@DragonOS.org> Co-authored-by: longjin <longjin@DragonOS.org>
This commit is contained in:
@ -572,86 +572,6 @@
|
||||
|
||||
  第二个字符串
|
||||
|
||||
#### `printk(const char* fmt, ...)`
|
||||
|
||||
##### 描述
|
||||
|
||||
  该宏能够在控制台上以黑底白字格式化输出字符串.
|
||||
|
||||
##### 参数
|
||||
|
||||
**fmt**
|
||||
|
||||
  源格式字符串
|
||||
|
||||
**...**
|
||||
|
||||
  可变参数
|
||||
|
||||
#### `printk_color(unsigned int FRcolor, unsigned int BKcolor, const char* fmt, ...)`
|
||||
|
||||
##### 描述
|
||||
|
||||
  在控制台上以指定前景色和背景色格式化输出字符串.
|
||||
|
||||
##### 参数
|
||||
|
||||
**FRcolor**
|
||||
|
||||
  前景色
|
||||
|
||||
**BKcolor**
|
||||
|
||||
  背景色
|
||||
|
||||
**fmt**
|
||||
|
||||
  源格式字符串
|
||||
|
||||
**...**
|
||||
|
||||
  可变参数
|
||||
|
||||
#### `int vsprintf(char *buf, const char *fmt, va_list args)`
|
||||
|
||||
##### 描述
|
||||
|
||||
  按照fmt格式化字符串,并将结果输出到buf中,返回写入buf的字符数量。
|
||||
|
||||
##### 参数
|
||||
|
||||
**buf**
|
||||
|
||||
  输出缓冲区
|
||||
|
||||
**fmt**
|
||||
|
||||
  源格式字符串
|
||||
|
||||
**args**
|
||||
|
||||
  可变参数列表
|
||||
|
||||
#### `int sprintk(char *buf, const char *fmt, ...)`
|
||||
|
||||
##### 描述
|
||||
|
||||
  按照fmt格式化字符串,并将结果输出到buf中,返回写入buf的字符数量。
|
||||
|
||||
##### 参数
|
||||
|
||||
**buf**
|
||||
|
||||
  输出缓冲区
|
||||
|
||||
**fmt**
|
||||
|
||||
  源格式字符串
|
||||
|
||||
**...**
|
||||
|
||||
  可变参数
|
||||
|
||||
### 内存操作
|
||||
|
||||
#### `void *memcpy(void *dst, const void *src, uint64_t size)`
|
||||
|
Reference in New Issue
Block a user