summaryrefslogtreecommitdiff
path: root/net.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 /net.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 'net.c')
-rw-r--r--net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net.c b/net.c
index d52d2e5..51a5997 100644
--- a/net.c
+++ b/net.c
@@ -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;