X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fhelper%2Flog.h;h=f2d19d16b13531152a7a8983a4cc02880e962bb3;hp=6f7c24a80bb40f361381aaa7dfa6b97ae9822d4f;hb=c4992c6d863d0ead91d84d19bbfe1643d720b205;hpb=9763aef76a42fdaedcec9825fdf502f8cb7dd628 diff --git a/src/helper/log.h b/src/helper/log.h index 6f7c24a80b..f2d19d16b1 100644 --- a/src/helper/log.h +++ b/src/helper/log.h @@ -66,7 +66,10 @@ void log_printf_lf(enum log_levels level, const char *file, unsigned line, const char *function, const char *format, ...) __attribute__ ((format (PRINTF_ATTRIBUTE_FORMAT, 5, 6))); -int log_init(struct command_context *cmd_ctx); +/** + * Initialize logging module. Call during program startup. + */ +void log_init(void); int set_log_output(struct command_context *cmd_ctx, FILE *output); int log_register_commands(struct command_context *cmd_ctx);