]> granicus.if.org Git - strace/commit
syslog: do not print bufp and len for commands that ignore them
authorEugene Syromyatnikov <evgsyr@gmail.com>
Wed, 26 Sep 2018 22:42:27 +0000 (00:42 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 5 Aug 2019 22:48:31 +0000 (22:48 +0000)
commit2ae13b1b501e945274fa27f2b61a77f4e2be4697
tree51bcbebf94ed408ba2a334f5b6d37569bbd4d8fc
parent8b31b3c77861323d54a70cdd48d8819a7b41deaf
syslog: do not print bufp and len for commands that ignore them

* syslog.c (SYS_FUNC(syslog)): Defer printing of comma after the first
argument to the specific command handlers, return RVAL_DECODED without
additional printing for SYSLOG_ACTION_CLOSE, SYSLOG_ACTION_OPEN,
SYSLOG_ACTION_CLEAR, SYSLOG_ACTION_CONSOLE_OFF,
SYSLOG_ACTION_CONSOLE_ON, SYSLOG_ACTION_SIZE_UNREAD,
SYSLOG_ACTION_SIZE_BUFFER.
* tests/syslog.c: Add checks.
syslog.c
tests/gen_tests.in
tests/syslog.c