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 /net.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 'net.c')
-rw-r--r-- | net.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1468,7 +1468,7 @@ tprint_sock_type(struct tcb *tcp, int flags) const char *str = xlookup(socktypes, flags & SOCK_TYPE_MASK); if (str) { - tprintf("%s", str); + tprints(str); flags &= ~SOCK_TYPE_MASK; if (!flags) return; |