summaryrefslogtreecommitdiff
path: root/common/log.h
diff options
context:
space:
mode:
authorCebtenzzre <cebtenzzre@gmail.com>2023-09-05 15:10:27 -0400
committerGitHub <noreply@github.com>2023-09-05 15:10:27 -0400
commitde2fe892af92a5c7b5ef1beb7efbc0524343fbab (patch)
tree340b003a020ad489ef6981cb08091a671f0987bd /common/log.h
parentc9c3220c485c7bea740a07cda7343677fb3beaae (diff)
examples : replace fprintf to stdout with printf (#3017)
Diffstat (limited to 'common/log.h')
-rw-r--r--common/log.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/common/log.h b/common/log.h
index 0b9b0105..18f3b976 100644
--- a/common/log.h
+++ b/common/log.h
@@ -513,16 +513,16 @@ inline bool log_param_pair_parse(bool check_but_dont_parse, const std::string &
inline void log_print_usage()
{
- fprintf(stdout, "log options:\n");
+ printf("log options:\n");
/* format
- fprintf(stdout, " -h, --help show this help message and exit\n");*/
+ printf(" -h, --help show this help message and exit\n");*/
/* spacing
- fprintf(stdout, "__-param----------------Description\n");*/
- fprintf(stdout, " --log-test Run simple logging test\n");
- fprintf(stdout, " --log-disable Disable trace logs\n");
- fprintf(stdout, " --log-enable Enable trace logs\n");
- fprintf(stdout, " --log-file Specify a log filename (without extension)\n");
- fprintf(stdout, " Log file will be tagged with unique ID and written as \"<name>.<ID>.log\"\n"); /* */
+ printf("__-param----------------Description\n");*/
+ printf(" --log-test Run simple logging test\n");
+ printf(" --log-disable Disable trace logs\n");
+ printf(" --log-enable Enable trace logs\n");
+ printf(" --log-file Specify a log filename (without extension)\n");
+ printf(" Log file will be tagged with unique ID and written as \"<name>.<ID>.log\"\n"); /* */
}
#define log_dump_cmdline(argc, argv) log_dump_cmdline_impl(argc, argv)