summaryrefslogtreecommitdiff
path: root/syslog.c
Commit message (Collapse)AuthorAgeFilesLines
* Add copyright headersEugene Syromyatnikov2017-05-221-0/+1
|
* Automatically replace PRI_kr[dux] with PRI_kl[dux]Dmitry V. Levin2016-12-261-1/+1
| | | | | | | | | | Remove temporary macros created for transition from long to kernel_ulong_t. Automatically replace PRI_kr[dux] with PRI_kl[dux] using $ git grep -l 'PRI_kr[dux]' | xargs sed -ri 's/PRI_kr([dux])/PRI_kl\1/g' * defs.h (PRI_krd, PRI_kru, PRI_krx): Remove. All users updated.
* Print kernel_ureg_t and kernel_scno_t using dedicated format stringsDmitry V. Levin2016-12-261-1/+1
| | | | | | | | Prepare for the change of kernel_ureg_t and kernel_scno_t from unsigned long to kernel_ulong_t. * defs.h (PRI_krd, PRI_kru, PRI_krx): New temporary macros. All users updated.
* printstr: rename to printstrn, add printstr as a thin wrapperDmitry V. Levin2016-12-251-1/+1
| | | | | | | | As about half of all printstr uses cases are invocations with the last argument set to -1, create a dedicated function for this use case. * defs.h (printstr): Rename to printstrn. All callers updated. (printstr): New static inline function. All callers updated.
* Add copyright headers to some files which lack themDmitry V. Levin2015-12-171-0/+27
| | | | | | | | | | Before this change, all files that exist since 20th century had copyright headers, while most files that appeared later didn't. This change fixes the inconsistency by adding missing copyright headers. It doesn't mean that copyright headers became maintained. In my view, git history provides much better information on this subject and is much more accurate than copyright headers.
* syslog.c: make use of RVAL_DECODEDDmitry V. Levin2015-07-161-5/+3
| | | | * syslog.c (sys_syslog): Update for RVAL_DECODED.
* syslog.c: use printaddrDmitry V. Levin2015-07-161-3/+3
| | | | * syslog.c (sys_syslog): Use printaddr.
* Declare syscall parsers using SYS_FUNC macroDmitry V. Levin2015-04-071-2/+1
| | | | | | | | | | | | | | Introduce SYS_FUNC macro to declare and define all syscall parsers. * Makefile.am (BUILT_SOURCES, CLEANFILES): Add sys_func.h. (sys_func.h): New rule. * defs.h (SYS_FUNC_NAME, SYS_FUNC): New macros. * linux/syscall.h: Include "sys_func.h". [NEED_UID16_PARSERS]: Use SYS_FUNC to declare uid16 syscall parsers. Remove other declarations. * linux/alpha/syscallent.h (160, 161): Add sys_ prefix to osf_statfs and osf_fstatfs syscall parsers. * *.c: Use SYS_FUNC to define syscall parsers.
* Move syslog parser to a separate fileDmitry V. Levin2014-12-041-0/+54
* syslog.c: New file. * Makefile.am (strace_SOURCES): Add it. * system.c: Move sys_syslog and related code to syslog.c.