浏览代码

:wrench: bux fix

fslongjin 3 年之前
父节点
当前提交
278c35111f
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      kernel/common/printk.c
  2. 1 1
      kernel/common/printk.h

+ 1 - 1
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)))

+ 1 - 1
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中
  *