-
Notifications
You must be signed in to change notification settings - Fork 10
Conversation
Signed-off-by: Joao Eduardo Luis <[email protected]>
Signed-off-by: Joao Eduardo Luis <[email protected]>
Signed-off-by: Joao Eduardo Luis <[email protected]>
When building a preamble, clang-tidy really dislikes header recursion without '#pragma once'. Seems like it doesn't observe the header guards. Signed-off-by: Joao Eduardo Luis <[email protected]>
Signed-off-by: Joao Eduardo Luis <[email protected]>
2f1ac7a
to
8dcd871
Compare
#define lsfs_err(_dpp) lsfs_dout(_dpp, SFS_LOG_ERROR) | ||
#define lsfs_err_for(_dpp, _whom) lsfs_dout_for(_dpp, SFS_LOG_ERROR, _whom) | ||
|
||
#define lsfs_startup(_dpp) lsfs_dout(_dpp, SFS_LOG_STARTUP) | ||
#define lsfs_startup_for(_dpp, _whom) \ | ||
lsfs_dout_for(_dpp, SFS_LOG_STARTUP, _whom) | ||
|
||
#define lsfs_shutdown(_dpp) lsfs_dout(_dpp, SFS_LOG_SHUTDOWN) | ||
#define lsfs_shutdown_for(_dpp, _whom) \ | ||
lsfs_dout_for(_dpp, SFS_LOG_SHUTDOWN, _whom) | ||
|
||
#define lsfs_warn(_dpp) lsfs_dout(_dpp, SFS_LOG_WARN) | ||
#define lsfs_warn_for(_dpp, _whom) lsfs_dout_for(_dpp, SFS_LOG_WARN, _whom) | ||
|
||
#define lsfs_info(_dpp) lsfs_dout(_dpp, SFS_LOG_INFO) | ||
#define lsfs_info_for(_dpp, _whom) lsfs_dout_for(_dpp, SFS_LOG_INFO, _whom) | ||
|
||
#define lsfs_verb(_dpp) lsfs_dout(_dpp, SFS_LOG_VERBOSE) | ||
#define lsfs_verb_for(_dpp, _whom) lsfs_dout_for(_dpp, SFS_LOG_VERBOSE, _whom) | ||
|
||
#define lsfs_debug(_dpp) lsfs_dout(_dpp, SFS_LOG_DEBUG) | ||
#define lsfs_debug_for(_dpp, _whom) lsfs_dout_for(_dpp, SFS_LOG_DEBUG, _whom) | ||
|
||
#define lsfs_trace(_dpp) lsfs_dout(_dpp, SFS_LOG_TRACE) | ||
#define lsfs_trace_for(_dpp, _whom) lsfs_dout_for(_dpp, SFS_LOG_TRACE, _whom) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
#define SFS_LOG_VERBOSE 10 | ||
#define SFS_LOG_DEBUG 15 | ||
#define SFS_LOG_TRACE 20 | ||
#define SFS_LOG_MEGA_TRACE 30 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the name, but can't think of a use for something above trace.
I like it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Optional: Remove SFS_LOG_MEGA_TRACE, because no use case at the moment
I like it too much, and I'm sure someone will at some point use it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lg2m
Fixes: aquarist-labs/s3gw#781
Signed-off-by: Joao Eduardo Luis <[email protected]>