From caac2299fff40df153b35b0d02f5561e207dbdbb Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Mon, 20 Sep 2010 20:06:14 +0200 Subject: [PATCH] disassembler: Improve header error messages Signed-off-by: Michael Buesch --- disassembler/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disassembler/main.c b/disassembler/main.c index cf716df..09e7643 100644 --- a/disassembler/main.c +++ b/disassembler/main.c @@ -857,11 +857,11 @@ static int read_input(struct disassembler_context *ctx) case FMT_B43: ret = fread(&hdr, 1, sizeof(hdr), infile); if (ret != sizeof(hdr)) { - fprintf(stderr, "Corrupt input file (not fwcutter output)\n"); + fprintf(stderr, "Corrupt input file (no b43 header found)\n"); goto err_close; } if (hdr.type != FW_TYPE_UCODE) { - fprintf(stderr, "Corrupt input file. Not a microcode image.\n"); + fprintf(stderr, "Corrupt input file. Not a b43 microcode image.\n"); goto err_close; } if (hdr.ver != FW_HDR_VER) { -- 2.31.1