summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2011-09-01 09:55:05 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2011-09-01 09:55:05 +0200
commit5940e6593911dcace424c668a1c0934c71fccb9e (patch)
tree612158491814a5c9f5a6a75c95f227fc79ba9e75 /io.c
parentdfa0acc8c1fc8d287c77f96ace8ac874f09c829a (diff)
downloadstrace-5940e6593911dcace424c668a1c0934c71fccb9e.tar.gz
strace-5940e6593911dcace424c668a1c0934c71fccb9e.tar.bz2
strace-5940e6593911dcace424c668a1c0934c71fccb9e.tar.xz
Fix "format not a string literal" warning caused by tprintf(str)
* defs.h: Declare tprints(). * strace.c: Define tprints(). (tabto): Use tprints(str), since tprintf(str) was throwing a warning. * desc.c: Use tprints(str) instead of tprintf("%s", str). * file.c: Likewise. * io.c: Likewise. * net.c: Likewise. * process.c: Likewise. * signal.c: Likewise. * syscall.c: Likewise. * util.c: Likewise. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index e3cad66..fa51cef 100644
--- a/io.c
+++ b/io.c
@@ -426,7 +426,7 @@ sys_ioctl(struct tcb *tcp)
tprintf(", ");
iop = ioctl_lookup(tcp->u_arg[1]);
if (iop) {
- tprintf("%s", iop->symbol);
+ tprints(iop->symbol);
while ((iop = ioctl_next_match(iop)))
tprintf(" or %s", iop->symbol);
} else