diff --git a/fscklog/display.c b/fscklog/display.c index a33d44f..c3ffc3a 100644 --- a/fscklog/display.c +++ b/fscklog/display.c @@ -182,7 +182,7 @@ void dump_service_log() } else { /* the record looks ok */ msg_txt = &log_entry[log_entry_pos]; - printf(msg_txt); + printf("%s", msg_txt); /* * set up for the next record */ diff --git a/fscklog/fscklog.c b/fscklog/fscklog.c index b6c6202..292adda 100644 --- a/fscklog/fscklog.c +++ b/fscklog/fscklog.c @@ -252,8 +252,8 @@ int v_send_msg(int msg_num, const char *file_name, int line_number, ...) { sprintf(debug_detail, " [%s:%d]\n", basename(file_name), line_number); - printf(msg_string); - printf(debug_detail); + printf("%s", msg_string); + printf("%s", debug_detail); return 0; } diff --git a/logdump/helpers.c b/logdump/helpers.c index a7e0c55..1982187 100644 --- a/logdump/helpers.c +++ b/logdump/helpers.c @@ -95,8 +95,8 @@ int v_fsck_send_msg(int msg_num, const char *file_name, int line_number, ...) { sprintf(debug_detail, " [%s:%d]\n", file_name, line_number); - printf(msg_string); - printf(debug_detail); + printf("%s", msg_string); + printf("%s", debug_detail); return 0; }