[media] drxk: Print an error if firmware is not loaded
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 9 Jul 2011 22:23:44 +0000 (19:23 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:55:49 +0000 (17:55 -0300)
If something bad happens during firmware load, an error
should be printed at dmesg.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/drxk_hard.c

index 89db378358728c0763810e4290b5fed365c46ea4..1452e8228a6fb9debd9d77e9817d168c1e6b76fe 100644 (file)
@@ -1395,8 +1395,10 @@ static int DownloadMicrocode(struct drxk_state *state,
                }
 
                status = write_block(state, Address, BlockSize, pSrc);
-               if (status < 0)
+               if (status < 0) {
+                       printk(KERN_ERR "drxk: Error %d while loading firmware\n", status);
                        break;
+               }
                pSrc += BlockSize;
                offset += BlockSize;
        }