Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo #271

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/level_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ zlog_level_t *zlog_level_list_get(zc_arraylist_t *levels, int l)
#if 0
if ((l <= 0) || (l > 254)) {
/* illegal input from zlog() */
zc_error("l[%d] not in (0,254), set to UNKOWN", l);
zc_error("l[%d] not in (0,254), set to UNKNOWN", l);
l = 254;
}
#endif
Expand All @@ -125,7 +125,7 @@ zlog_level_t *zlog_level_list_get(zc_arraylist_t *levels, int l)
} else {
/* empty slot */
zc_error("l[%d] not in (0,254), or has no level defined,"
"see configure file define, set to UNKOWN", l);
"see configure file define, set to UNKNOWN", l);
return zc_arraylist_get(levels, 254);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/rule.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ static int zlog_rule_output_static_record(zlog_rule_t * a_rule, zlog_thread_t *
zlog_msg_t msg;

if (!a_rule->record_func) {
zc_error("user defined record funcion for [%s] not set, no output",
zc_error("user defined record function for [%s] not set, no output",
a_rule->record_name);
return -1;
}
Expand All @@ -422,7 +422,7 @@ static int zlog_rule_output_dynamic_record(zlog_rule_t * a_rule, zlog_thread_t *
zlog_msg_t msg;

if (!a_rule->record_func) {
zc_error("user defined record funcion for [%s] not set, no output",
zc_error("user defined record function for [%s] not set, no output",
a_rule->record_name);
return -1;
}
Expand Down