Skip to content

Commit

Permalink
Low: log: return filter type enum to preserve abi compatibilty with c…
Browse files Browse the repository at this point in the history
…orosync

This returns abi compatiblity with libqb v0.16.0. There was a subtle
change in behavior caused by reordering the log filter enum in
v0.17.0.
  • Loading branch information
davidvossel committed Jul 23, 2014
1 parent bd48e8f commit 073f927
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions include/qb/qblog.h
Expand Up @@ -408,12 +408,12 @@ enum qb_log_conf {
};

enum qb_log_filter_type {
QB_LOG_FILTER_FILE_REGEX,
QB_LOG_FILTER_FUNCTION_REGEX,
QB_LOG_FILTER_FORMAT_REGEX,
QB_LOG_FILTER_FILE,
QB_LOG_FILTER_FUNCTION,
QB_LOG_FILTER_FORMAT,
QB_LOG_FILTER_FILE_REGEX,
QB_LOG_FILTER_FUNCTION_REGEX,
QB_LOG_FILTER_FORMAT_REGEX,
};

enum qb_log_filter_conf {
Expand Down
2 changes: 1 addition & 1 deletion lib/log.c
Expand Up @@ -683,7 +683,7 @@ qb_log_filter_ctl2(int32_t t, enum qb_log_filter_conf c,

if (text == NULL ||
low_priority < high_priority ||
type > QB_LOG_FILTER_FORMAT ||
type > QB_LOG_FILTER_FORMAT_REGEX ||
c > QB_LOG_TAG_CLEAR_ALL) {
return -EINVAL;
}
Expand Down

0 comments on commit 073f927

Please sign in to comment.