Lines Matching refs:msg
85 char msg[msg_length]; member
129 check_syslog_message (const struct msg_t *msg, int msgnum, int options, in check_syslog_message() argument
144 TEST_COMPARE (msg->facility, expected_facility); in check_syslog_message()
145 TEST_COMPARE (msg->priority, expected_priority); in check_syslog_message()
183 check_openlog_message (const struct msg_t *msg, int msgnum, in check_openlog_message() argument
190 TEST_COMPARE (msg->priority, expected_priority); in check_openlog_message()
202 TEST_COMPARE (msg->pid, pid); in check_openlog_message()
203 TEST_COMPARE_STRING (msg->ident, expected_ident); in check_openlog_message()
204 TEST_COMPARE (msg->facility, LOG_LOCAL0); in check_openlog_message()
207 TEST_COMPARE (msg->facility, LOG_LOCAL7); in check_openlog_message()
209 TEST_COMPARE (msg->facility, LOG_KERN); in check_openlog_message()
215 parse_syslog_msg (const char *msg) in parse_syslog_msg() argument
222 int n = sscanf (msg, "<%3d>%*s %*d %*d:%*d:%*d %32s %64s %*d %*d", in parse_syslog_msg()
223 &number, r.ident, r.msg); in parse_syslog_msg()
241 parse_syslog_console (const char *msg) in parse_syslog_console() argument
249 int n = sscanf (msg, "%32s %64s %d %d", in parse_syslog_console()
250 r.ident, r.msg, &facility, &priority); in parse_syslog_console()
289 struct msg_t msg = parse_syslog_msg (buf); in check_syslog_udp() local
290 if (!syslog_check (&msg, msgnum++, options, sender_pid)) in check_syslog_udp()
348 struct msg_t msg = parse_syslog_msg (b); in check_syslog_tcp() local
349 if (!syslog_check (&msg, msgnum++, options, sender_pid)) in check_syslog_tcp()
385 struct msg_t msg = parse_syslog_console (buf); in check_syslog_console_read() local
386 TEST_COMPARE_STRING (msg.ident, OPENLOG_IDENT ":"); in check_syslog_console_read()
387 TEST_COMPARE (msg.priority, priorities[msgnum]); in check_syslog_console_read()
388 TEST_COMPARE (msg.facility, LOG_LOCAL0); in check_syslog_console_read()