]> granicus.if.org Git - strace/commit
printstr: rename to printstrn, add printstr as a thin wrapper
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 20 Dec 2016 16:43:26 +0000 (16:43 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 25 Dec 2016 11:32:45 +0000 (11:32 +0000)
commita940d1a60fe97c27b161d9dc178606bf57707993
treeb665342786a96c6fe8093ec80e02b334f1ea7dcc
parent1cb75579e1daa278d2aa1f7ab13b9a23a11e8157
printstr: rename to printstrn, add printstr as a thin wrapper

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.
26 files changed:
aio.c
bjm.c
bpf.c
defs.h
evdev.c
execve.c
getrandom.c
hostname.c
io.c
kexec.c
keyctl.c
lookup_dcookie.c
memfd_create.c
mount.c
mq.c
net.c
netlink.c
prctl.c
print_msgbuf.c
readlink.c
reboot.c
sock.c
syslog.c
term.c
v4l2.c
xattr.c