Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build errors when ENABLE_VERBOSE is not set #60

Merged
merged 1 commit into from
Jan 29, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/tcpreplay_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ tcpreplay_set_verbose(tcpreplay_t *ctx, bool value)
ctx->options->verbose = value;
return 0;
#else
tcpreplay_seterr(ctx, "verbose mode not supported");
tcpreplay_seterr(ctx, "%s", "verbose mode not supported");
return -1;
#endif
}
Expand All @@ -710,7 +710,7 @@ tcpreplay_set_tcpdump_args(tcpreplay_t *ctx, char *value)
ctx->options->tcpdump_args = safe_strdup(value);
return 0;
#else
tcpreplay_seterr(ctx, "verbose mode not supported");
tcpreplay_seterr(ctx, "%s", "verbose mode not supported");
return -1;
#endif
}
Expand All @@ -731,7 +731,7 @@ tcpreplay_set_tcpdump(tcpreplay_t *ctx, tcpdump_t *value)
ctx->options->tcpdump = value;
return 0;
#else
tcpreplay_seterr(ctx, "verbose mode not supported");
tcpreplay_seterr(ctx, "%s", "verbose mode not supported");
return -1;
#endif
}
Expand Down