Skip to content

Commit 694c563

Browse files
yuzibodeemar
authored andcommitted
Fix typo
Checking by Debian lintian Signed-off-by: Bo YU <tsu.yubo@gmail.com>
1 parent 57cfb13 commit 694c563

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/level_list.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ zlog_level_t *zlog_level_list_get(zc_arraylist_t *levels, int l)
114114
#if 0
115115
if ((l <= 0) || (l > 254)) {
116116
/* illegal input from zlog() */
117-
zc_error("l[%d] not in (0,254), set to UNKOWN", l);
117+
zc_error("l[%d] not in (0,254), set to UNKNOWN", l);
118118
l = 254;
119119
}
120120
#endif
@@ -125,7 +125,7 @@ zlog_level_t *zlog_level_list_get(zc_arraylist_t *levels, int l)
125125
} else {
126126
/* empty slot */
127127
zc_error("l[%d] not in (0,254), or has no level defined,"
128-
"see configure file define, set to UNKOWN", l);
128+
"see configure file define, set to UNKNOWN", l);
129129
return zc_arraylist_get(levels, 254);
130130
}
131131
}

src/rule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ static int zlog_rule_output_static_record(zlog_rule_t * a_rule, zlog_thread_t *
471471
zlog_msg_t msg;
472472

473473
if (!a_rule->record_func) {
474-
zc_error("user defined record funcion for [%s] not set, no output",
474+
zc_error("user defined record function for [%s] not set, no output",
475475
a_rule->record_name);
476476
return -1;
477477
}
@@ -504,7 +504,7 @@ static int zlog_rule_output_dynamic_record(zlog_rule_t * a_rule, zlog_thread_t *
504504
zlog_msg_t msg;
505505

506506
if (!a_rule->record_func) {
507-
zc_error("user defined record funcion for [%s] not set, no output",
507+
zc_error("user defined record function for [%s] not set, no output",
508508
a_rule->record_name);
509509
return -1;
510510
}

0 commit comments

Comments
 (0)