diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2011-09-01 09:55:05 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2011-09-01 09:55:05 +0200 |
commit | 5940e6593911dcace424c668a1c0934c71fccb9e (patch) | |
tree | 612158491814a5c9f5a6a75c95f227fc79ba9e75 /io.c | |
parent | dfa0acc8c1fc8d287c77f96ace8ac874f09c829a (diff) | |
download | strace-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |