From 278c35111ff695cf403d380039c7b1f3bb21843f Mon Sep 17 00:00:00 2001 From: fslongjin Date: Mon, 24 Jan 2022 18:01:40 +0800 Subject: [PATCH] :wrench: bux fix --- kernel/common/printk.c | 2 +- kernel/common/printk.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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中 *