]> granicus.if.org Git - strace/commit
Introduce tprintf_comment and tprints_comment functions
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 24 Apr 2017 19:31:54 +0000 (19:31 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 24 Apr 2017 19:31:54 +0000 (19:31 +0000)
commitc34952709d9ac040ce588f3aa26b3f5f65ee8c97
tree93c80be0c6a9ddc683dcd4e8d2adfb786c785bea
parent37fc8e673a78a281cfc28a1fa23e7c4f542007f4
Introduce tprintf_comment and tprints_comment functions

* defs.h (tprintf_comment, tprints_comment): New prototypes.
* strace.c (tvprintf): New function.
(tprintf): Use it.
(tprintf_comment, tprints_comment): New functions.
* aio.c (tprint_lio_opcode): Use tprints_comment.
* dm.c (dm_decode_dm_target_spec, dm_decode_dm_target_deps,
dm_decode_dm_name_list, dm_decode_dm_target_versions,
dm_decode_dm_target_msg, dm_decode_string, dm_known_ioctl): Likewise.
* futex.c (SYS_FUNC(futex)): Likewise.
* perf.c (print_perf_event_attr): Likewise.
* seccomp.c (decode_bpf_code): Likewise.
* util.c (printxvals, printxval_searchn, printflags64): Likewise.
* btrfs.c (print_u64, btrfs_print_key_type, btrfs_print_objectid,
print_key_value_internal): Likewise.
(btrfs_ioctl): Use tprints_comment and tprintf_comment.
* dirent.c (SYS_FUNC(getdents)): Likewise.
* dirent64.c (SYS_FUNC(getdents64)): Likewise.
* execve.c (printargc): Use tprintf_comment.
* tests/btrfs.c (btrfs_test_get_dev_stats_ioctl,
btrfs_test_features_ioctls): Update expected output.
13 files changed:
aio.c
btrfs.c
defs.h
dirent.c
dirent64.c
dm.c
execve.c
futex.c
perf.c
seccomp.c
strace.c
tests/btrfs.c
util.c