]> sigrok.org Git - libsigrokdecode.git/commitdiff
srd: use format string where one is expected
authorBert Vermeulen <redacted>
Fri, 27 Jan 2012 00:14:01 +0000 (01:14 +0100)
committerBert Vermeulen <redacted>
Fri, 27 Jan 2012 00:14:01 +0000 (01:14 +0100)
log.c

diff --git a/log.c b/log.c
index c89a74bce8506a544e92f61484494be0ba8fd653..829bc156acfe72e37b9a306f6bf7a6cc2f0292e4 100644 (file)
--- 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");