forked from opendcdiag/opendcdiag
-
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.
FW/logging: refactor log_{platform_,}message
This merges the two functions for the most part and makes them use a single writev() call to write the content. This was originally done to fix opendcdiag#153, but that fails because the Linux kernel does not guarantee atomicity of write() calls and I wouldn't care to make a guess what other OSes do. If we want to have log_platform_message() be thread-safe, we'll need to insert a mutex. Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
- Loading branch information
1 parent
9e49197
commit 4d01dfb
Showing
1 changed file
with
30 additions
and
31 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