From: Michael Buesch Date: Mon, 20 Sep 2010 18:06:14 +0000 (+0200) Subject: disassembler: Improve header error messages X-Git-Tag: b43-fwcutter-014~26 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=caac2299fff40df153b35b0d02f5561e207dbdbb;p=b43-tools.git disassembler: Improve header error messages Signed-off-by: Michael Buesch --- 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) {