forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
subsys: logging: Using struct to manger log_strdup buffer.
log_strdup requested for a piece of memory, with the first 4 bytes as the number of references and the next used to copy strings. In the implementation of this function, the memory is managed by user and is a little hard to understand. Rewriting this part of code, using structure to manage the memory requested, make it easier to understand. Signed-off-by: qianfan Zhao <[email protected]>
- Loading branch information
1 parent
48f65c4
commit 02bd01e
Showing
1 changed file
with
24 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters