From 4fbb100b9cbe9b81c6fb786c8c52926f8c87b366 Mon Sep 17 00:00:00 2001 From: wusongqing Date: Tue, 14 Sep 2021 10:57:45 +0800 Subject: [PATCH] updated printf in two md files Signed-off-by: wusongqing --- en/device-dev/kernel/kernel-mini-basic-memory-dynamic.md | 4 ++-- zh-cn/device-dev/kernel/kernel-mini-basic-memory-dynamic.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/en/device-dev/kernel/kernel-mini-basic-memory-dynamic.md b/en/device-dev/kernel/kernel-mini-basic-memory-dynamic.md index 40626e1007..dc4a0c590e 100644 --- a/en/device-dev/kernel/kernel-mini-basic-memory-dynamic.md +++ b/en/device-dev/kernel/kernel-mini-basic-memory-dynamic.md @@ -203,7 +203,7 @@ VOID Example_DynMem(VOID) /* Assign a value.*/ *mem = 828; - printf("*Memory = %d\n", *mem); + printf("*mem = %d\n", *mem); /* Release memory.*/ ret = LOS_MemFree(g_testPool, mem); @@ -224,7 +224,7 @@ The output is as follows: ``` Memory pool initialized. Memory allocated. -*Memory = 828 +*mem = 828 Memory released. ``` diff --git a/zh-cn/device-dev/kernel/kernel-mini-basic-memory-dynamic.md b/zh-cn/device-dev/kernel/kernel-mini-basic-memory-dynamic.md index 1df9a8b953..64cccc6f91 100644 --- a/zh-cn/device-dev/kernel/kernel-mini-basic-memory-dynamic.md +++ b/zh-cn/device-dev/kernel/kernel-mini-basic-memory-dynamic.md @@ -224,7 +224,7 @@ VOID Example_DynMem(VOID) /*赋值*/ *mem = 828; - printf("*Memory = %d\n", *mem); + printf("*mem = %d\n", *mem); /*释放内存*/ ret = LOS_MemFree(g_testPool, mem); @@ -245,7 +245,7 @@ VOID Example_DynMem(VOID) ``` Memory pool initialized. Memory allocated. -*Memory = 828 +*mem = 828 Memory released. ``` -- GitLab