diff --git a/cr-show.c b/cr-show.c index b325d24dd..07da16227 100644 --- a/cr-show.c +++ b/cr-show.c @@ -453,7 +453,7 @@ static int cr_parse_file(struct cr_options *opts) show_unixsk(opts->show_dump_file, fd, true); break; default: - pr_err("Unknown magic %x on %s\n", opts->show_dump_file); + pr_err("Unknown magic %x on %s\n", magic, opts->show_dump_file); goto err; } ret = 0;