commit | 2851e0d56c759aba709051d4b3faf3d8de797d7f | [log] [tgz] |
---|---|---|
author | George Liu <liuxiwei@ieisystem.com> | Tue Dec 05 14:44:11 2023 +0800 |
committer | George Liu <liuxiwei@ieisystem.com> | Tue Dec 12 13:41:44 2023 +0800 |
tree | a16e067edb1adf3bdadf3be9410fba04142f31d3 | |
parent | 83d7d406f7cf6a0b74040cf3dec3d4cf7026ef09 [diff] |
Updated to use errno instead of error_code in lg2 Since the std::error_code parameter is used in the std::filesystem library to capture exception errors, but for some methods (such as exists), if the file does not exist, the error_code is still 0, because it is explained in cppreference: ``` Sets a std::error_code& parameter to the OS API error code if an OS API call fails, and executes ec.clear() if no errors occur. ``` So the log printed as "Failed to find xxx file: success", This isn't very clear about this log description, why the file is not found, and then success is printed. So before printing the ec, we should first check if it is non-zero. Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I2829a5d3c22b14b8e03077f62869fb2195b19680
Phosphor BMC Code Management provides a set of system software management applications. More information can be found at Software Architecture
To build this package, do the following steps:
meson build
ninja -C build
To clean the repository run rm -r build
.