logginrb: Fix compiler warning about fprintf

loggingrb/loggingrb_test.c:76:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
        fprintf(stderr, log_target_rb_get(ringbuf_target, 0));
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
loggingrb/loggingrb_test.c:77:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
        fprintf(stderr, log_target_rb_get(ringbuf_target, 1));
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
Holger Hans Peter Freyther 2015-04-11 19:33:10 +02:00
parent c2b4458e07
commit 6b1faf7362
1 changed files with 2 additions and 2 deletions

View File

@ -73,8 +73,8 @@ int main(int argc, char **argv)
DEBUGP(DRLL, "You should see this\n");
DEBUGP(DCC, "You should see this\n");
DEBUGP(DMM, "You should not see this\n");
fprintf(stderr, log_target_rb_get(ringbuf_target, 0));
fprintf(stderr, log_target_rb_get(ringbuf_target, 1));
fprintf(stderr, "%s", log_target_rb_get(ringbuf_target, 0));
fprintf(stderr, "%s", log_target_rb_get(ringbuf_target, 1));
OSMO_ASSERT(!log_target_rb_get(ringbuf_target, 2));
return 0;