From 0c269b03180b076f67e98ab5e02619e13ecea7e1 Mon Sep 17 00:00:00 2001 From: stesen <5200794+stesen@user.noreply.gitee.com> Date: Mon, 14 Sep 2020 16:21:47 +0800 Subject: [PATCH 1/2] update dfx subsystem readme --- docs-en/readme/dfx.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/docs-en/readme/dfx.md b/docs-en/readme/dfx.md index 90b3da09d6b..01e84be97ee 100755 --- a/docs-en/readme/dfx.md +++ b/docs-en/readme/dfx.md @@ -8,7 +8,7 @@ As chip resources are limited and hardware platforms are diversified, component- - mini: This framework is intended for hardware platforms with Cortex-M or equivalent processing capabilities. The system memory is generally less than 512 KB. There is only one lightweight file system that can be used in limited scenarios, or no file system at all. The mini framework complies with the Cortex Microcontroller Software Interface Standard \(CMSIS\). -- featured: This framework is intended for hardware platforms with Cortex-A or equivalent processing capabilities. The system memory is greater than 512 KB. There is a comprehensive file system for storing a large amount of data. The featured framework complies with the Portable Operating System Interface \(POSIX\) specifications. +- featured: This framework is intended for hardware platforms with Cortex-A or equivalent processing capabilities. The system memory is generally greater than 512 KB. There is a comprehensive file system for storing a large amount of data. The featured framework complies with the Portable Operating System Interface \(POSIX\) specifications. ## Directory Structure @@ -130,7 +130,7 @@ The mini framework is a simple and compact DFX design that provides the logging Add the following code to the initialization process of Module A to register it with the logging framework: ``` - HiLogRegisterModule(HILOG_MODULE_SAMGR, "A"); + HiLogRegisterModule(HILOG_MODULE_A, "A"); ``` @@ -155,7 +155,6 @@ The mini framework is a simple and compact DFX design that provides the logging

OUTPUT_OPTION_DEBUG: Logs are directly output to the serial port without cross-task scheduling. This value is used only for temporary debugging.

OUTPUT_OPTION_FLOW (default value): Logs are output as data flow to the serial port.

OUTPUT_OPTION_TEXT_FILE: Logs are output as text files.

-

OUTPUT_OPTION_BIN_FILE (to be supported): Logs are output as binary files.

level

@@ -189,7 +188,7 @@ The mini framework is a simple and compact DFX design that provides the logging Include **\#include "log.h"** in the **.c** file where logs need to be printed, call the following function: - HILOG\_INFO\(HILOG\_MODULE\_SAMGR, "log test: %d", 88\); + HILOG\_INFO\(HILOG\_MODULE\_A, "log test: %d", 88\); Parameter description: @@ -248,7 +247,11 @@ The featured framework provides comprehensive DFX features and logging APIs. Available hilog APIs: ``` -HILOGD(fmt,...) HILOGI(fmt,...) HILOGW(fmt,...) HILOGE(fmt,...) +HILOG_DEBUG(type, ...) +HILOG_INFO(type, ...) +HILOG_WARN(type, ...) +HILOG_ERROR(type, ...) +HILOG_FATAL(type, ...) ``` Usage guidelines: @@ -310,7 +313,7 @@ Parameter description: **Viewing logs** -1. Go to the **/storage/data/log/hilogs** directory to view hilog logs for debugging purpose. +1. Go to the **/storage/data/log/** directory to view hilog logs for debugging purpose. 2. Run the **hilogcat** command to view hilog logs in real time. -- Gitee From e3b637d9e6e88c3ed66fb1dc738607cdee4d38e0 Mon Sep 17 00:00:00 2001 From: stesen <5200794+stesen@user.noreply.gitee.com> Date: Mon, 14 Sep 2020 16:48:43 +0800 Subject: [PATCH 2/2] typo in 3861 introduction --- ...\274\200\345\217\221\346\235\277\344\273\213\347\273\215.md" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/quick-start/Hi3861\345\274\200\345\217\221\346\235\277\344\273\213\347\273\215.md" "b/quick-start/Hi3861\345\274\200\345\217\221\346\235\277\344\273\213\347\273\215.md" index 17b493752d2..2ff7cf9d2fc 100755 --- "a/quick-start/Hi3861\345\274\200\345\217\221\346\235\277\344\273\213\347\273\215.md" +++ "b/quick-start/Hi3861\345\274\200\345\217\221\346\235\277\344\273\213\347\273\215.md" @@ -137,7 +137,7 @@ OpenHarmony基于Hi3861平台提供了多种开放能力,提供的关键组件

DFX

-

提供DFX能力。包括:流水日志、时间打点等。

+

提供DFX能力。包括:流水日志、事件打点等。

XTS

-- Gitee