From e49c74fb12e22cc770c990cf73cb9ed6bd419130 Mon Sep 17 00:00:00 2001 From: TermiNexus Date: Thu, 27 Aug 2026 01:27:38 +0800 Subject: [PATCH] =?UTF-8?q?debug(fat32):=20handle=5Falloc=20=E8=A1=A8?= =?UTF-8?q?=E6=BB=A1=E8=AF=8A=E6=96=AD=E5=8A=A0=20handle=5Ftable=20?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E2=80=94=E2=80=94=E5=AE=9A=E4=BD=8D=20BSS=20?= =?UTF-8?q?=E7=9B=B8=E9=82=BB=E8=B6=8A=E7=95=8C=E5=86=99=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VKernel/Kernel/drivers/fs/fat32/fat32_types.vp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/VKernel/Kernel/drivers/fs/fat32/fat32_types.vp b/VKernel/Kernel/drivers/fs/fat32/fat32_types.vp index a9160f4..1d0453d 100644 --- a/VKernel/Kernel/drivers/fs/fat32/fat32_types.vp +++ b/VKernel/Kernel/drivers/fs/fat32/fat32_types.vp @@ -1716,11 +1716,11 @@ def handle_alloc() -> fileobj | t.CPtr: for i in range(MAX_HANDLES): if not handle_table[i].is_open: return c.Addr(handle_table[i]) - # [DIAG] 表满定位:打印 handles_initialized 与前几个 handle 的 is_open - _dha: t.CArray[t.CChar, 96] - viperlib.snprintf(c.Addr(_dha), 96, "[handle] full init=%d h0=%d h1=%d h2=%d h3=%d\n", + # [DIAG] 表满定位:打印 handles_initialized 与前几个 handle 的 is_open + 表地址 + _dha: t.CArray[t.CChar, 120] + viperlib.snprintf(c.Addr(_dha), 120, "[handle] full init=%d h0=%d h1=%d h2=%d h3=%d addr=0x%lx\n", handles_initialized, handle_table[0].is_open, handle_table[1].is_open, - handle_table[2].is_open, handle_table[3].is_open) + handle_table[2].is_open, handle_table[3].is_open, t.CUInt64T(c.Addr(handle_table[0]))) serial.puts(c.Addr(_dha)) return None