mirror of
https://github.com/openharmony/hiviewdfx_hievent_lite.git
synced 2026-06-29 19:11:52 -04:00
master
bug: fix codex Created-by: lyj_love_code Commit-by: lyj_love_code Merged-by: openharmony_ci Description: ### 相关的Issue https://gitcode.com/openharmony/hiviewdfx_hievent_lite/issues/14 ### 原因(目的、解决的问题等) 代码不符合编码规范。 ### 描述(做了什么,变更了什么) 修改snprintf_s中打印类型为与变量无符号整数类型一致的%u。 ### 测试用例(新增、改动、可能影响的功能) NA See merge request: openharmony/hiviewdfx_hievent_lite!84
hievent Module
Overview
This module provides APIs for printing faults, user behavior, and power consumption statistics of service components. It also supports event serialization.
Architecture
- An event is created.
- Data is added for the event.
- The event is reported.
- The event component checks the parameter validity and performs binary serialization to convert the event into structured data.
- The event component calls the output function to write the event into a file. Each time a new file is written, the common header information is added to it.
- The upload component passively or proactively reports the event information to smartphones at a scheduled time.
Repositories Involved
hiviewdfx_hievent_lite
Description
Languages
C
100%