1 Star 0 Fork 5.3K

wenjun / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
fmtmsg-h.md 14.74 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

fmtmsg.h

Overview

Related Modules:

UTILS

Description:

Provides a function for printing formatted messages.

You can use the function in the file to write messages (especially error messages) into the output device specified by classification.

Since:

1.0

Version:

1.0

Summary

Macros

Macro Name and Value

Description

MM_HARD 1

A hardware error occurred.

MM_SOFT 2

A software error occurred.

MM_FIRM 4

A firmware error occurred.

MM_APPL 8

An error is detected by an application.

MM_UTIL 16

An error is detected by a utility.

MM_OPSYS 32

An error is detected by the operating system.

MM_RECOVER 64

The error is recoverable.

MM_NRECOV 128

The error is non-recoverable.

MM_PRINT 256

Prints error messages on standard error (stderr).

MM_CONSOLE 512

Prints error messages on the system console.

MM_NULLMC 0L

Ignores the classification parameter.

MM_HALT 1

Fatal fault.

MM_ERROR 2

Error-level fault.

MM_WARNING 3

Warning condition.

MM_INFO 4

Informative message.

MM_NOSEV 0

No severity level is set, equivalent to MM_NULLSEV.

MM_OK 0

The function succeeded.

MM_NOTOK (-1)

The function failed.

MM_NOMSG 1

Error writing to stderr.

MM_NOCON 4

Error writing to the console.

MM_NULLLBL ((char*)0)

Ignores the label parameter.

MM_NULLTXT ((char*)0)

Ignores the text parameter.

MM_NULLACT ((char*)0)

Ignores the action parameter.

MM_NULLTAG ((char*)0)

Ignores the tag parameter.

MM_NULLSEV 0

Ignores the severity parameter.

Functions

Function Name

Description

fmtmsg (long classification, const char *label, int severity, const char *text, const char *action, const char *tag)

int

Prints formatted messages.

1
https://gitee.com/wenjun_flyingfox/docs.git
git@gitee.com:wenjun_flyingfox/docs.git
wenjun_flyingfox
docs
docs
master

搜索帮助