printk.c
来自「自己正在开发的一个ARM9的操作系统。详细信息请访问www.another-pr」· C语言 代码 · 共 24 行
C
24 行
/*
* ApOS (Another Project software for s3c2410)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Copyright caiyuqing
*
*/
#include <stdarg.h>
#include "../include/kernel/sys.h"
extern char buf[1024];
system_call1(int,printf,char *,str)
void printk(char *fmt,...)
{
va_list args;
va_start(args,fmt);
vsprintf(buf,fmt,args);
va_end(args);
console_write(buf);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?