From 39624f7ee8eb90b61d79ab731da264959ac1879a Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Sat, 9 Jul 2011 19:23:44 -0300 Subject: [PATCH] [media] drxk: Print an error if firmware is not loaded If something bad happens during firmware load, an error should be printed at dmesg. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/dvb/frontends/drxk_hard.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/media/dvb/frontends/drxk_hard.c b/drivers/media/dvb/frontends/drxk_hard.c index 89db37835872..1452e8228a6f 100644 --- a/drivers/media/dvb/frontends/drxk_hard.c +++ b/drivers/media/dvb/frontends/drxk_hard.c @@ -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; } -- 2.39.5