diff --git a/kernel/common/printk.c b/kernel/common/printk.c index 0b5a095d..4531a2de 100644 --- a/kernel/common/printk.c +++ b/kernel/common/printk.c @@ -54,7 +54,7 @@ int init_printk(const int width, const int height, unsigned int *FB_address, con return 0; } -static int set_printk_pos(const int x, const int y) +int set_printk_pos(const int x, const int y) { // 指定的坐标不在屏幕范围内 if (!((x >= 0 && x <= pos.max_x) && (y >= 0 && y <= pos.max_y))) diff --git a/kernel/common/printk.h b/kernel/common/printk.h index 306be535..d3ff8003 100644 --- a/kernel/common/printk.h +++ b/kernel/common/printk.h @@ -72,7 +72,7 @@ int init_printk(const int width, const int height, unsigned int *FB_address, con * @param x 列坐标 * @param y 行坐标 */ -static int set_printk_pos(const int x, const int y); +int set_printk_pos(const int x, const int y); /** * @brief 将字符串按照fmt和args中的内容进行格式化,然后保存到buf中 *