Skip to content

Commit

Permalink
obj: synchronize pmemobj_log API with core_log API
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@intel.com>
  • Loading branch information
grom72 committed Mar 12, 2024
1 parent 9819db6 commit c8b37e6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/include/libpmemobj/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ enum pmemobj_log_level {
PMEMOBJ_LOG_LEVEL_INFO,
/* debug info e.g. write operation dump */
PMEMOBJ_LOG_LEVEL_DEBUG,
PMEMOBJ_LOG_LEVEL_MAX,
};

enum pmemobj_log_threshold {
Expand Down Expand Up @@ -64,6 +65,7 @@ enum pmemobj_log_threshold {
* PMEMOBJ_LOG_LEVEL_NOTICE,
* PMEMOBJ_LOG_LEVEL_INFO,
* PMEMOBJ_LOG_LEVEL_DEBUG,
* PMEMOBJ_LOG_LEVEL_MAX,
* };
*
* enum log_threshold {
Expand Down Expand Up @@ -161,10 +163,8 @@ typedef void pmemobj_log_function(
const int line_no,
/* the function name where the message coming from */
const char *function_name,
/* printf(3)-like format string of the message */
const char *message_format,
/* additional arguments of the message format string */
...);
/* message */
const char *message);

#define PMEMOBJ_LOG_USE_DEFAULT_FUNCTION (NULL)

Expand All @@ -178,8 +178,7 @@ typedef void pmemobj_log_function(
* const char *file_name,
* const int line_no,
* const char *function_name,
* const char *message_format,
* ...);
* const char *message);
*
* int pmemobj_log_set_function(pmemobj_log_function *log_function);
*
Expand Down

0 comments on commit c8b37e6

Please sign in to comment.