summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2012-01-27 01:14:01 +0100
committerBert Vermeulen <bert@biot.com>2012-01-27 01:14:01 +0100
commit568112ce6de82135b0bfd7b5319ffdd611e6b030 (patch)
tree3e9ea21ebe4e205bd5d548a1d1790e79e3bab24d
parentbc1385a6d999c0011050b1cbd275879a928f4252 (diff)
downloadlibsigrokdecode-568112ce6de82135b0bfd7b5319ffdd611e6b030.tar.gz
libsigrokdecode-568112ce6de82135b0bfd7b5319ffdd611e6b030.zip
srd: use format string where one is expected
-rw-r--r--log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/log.c b/log.c
index c89a74b..829bc15 100644
--- a/log.c
+++ b/log.c
@@ -166,7 +166,7 @@ static int srd_logv(void *data, int loglevel, const char *format, va_list args)
return SRD_OK; /* TODO? */
if (srd_log_domain[0] != '\0')
- fprintf(stderr, srd_log_domain);
+ fprintf(stderr, "%s", srd_log_domain);
ret = vfprintf(stderr, format, args);
fprintf(stderr, "\n");