summaryrefslogtreecommitdiff
path: root/syscall.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-02-26 12:30:09 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-02-26 12:30:09 +0100
commit905e8e0e2f0a1f51ab92424dcb005885ea8b2459 (patch)
treeaec55fed1263ba64e88ce59321d1c6760e91767a /syscall.c
parent1d58fe9b3b925735bde72cac96a042b3cef03037 (diff)
downloadstrace-905e8e0e2f0a1f51ab92424dcb005885ea8b2459.tar.gz
strace-905e8e0e2f0a1f51ab92424dcb005885ea8b2459.tar.bz2
strace-905e8e0e2f0a1f51ab92424dcb005885ea8b2459.tar.xz
Mass replace error_msg("%s", "literal") -> error_msg("literal")
There is no need to print literal strings through "%s". Only untrusted strings such as filenames need that. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'syscall.c')
-rw-r--r--syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/syscall.c b/syscall.c
index 120b19b..5bf2a12 100644
--- a/syscall.c
+++ b/syscall.c
@@ -1076,7 +1076,7 @@ get_scno(struct tcb *tcp)
errno = 0;
opcode = ptrace(PTRACE_PEEKTEXT, tcp->pid, (char *)(psw - sizeof(long)), 0);
if (errno) {
- perror_msg("%s", "peektext(psw-oneword)");
+ perror_msg("peektext(psw-oneword)");
return -1;
}