[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 89db378..1452e82 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;
        }