提交 39624f7e 编写于 作者: M Mauro Carvalho Chehab

[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: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 bcd2ebb7
...@@ -1395,8 +1395,10 @@ static int DownloadMicrocode(struct drxk_state *state, ...@@ -1395,8 +1395,10 @@ static int DownloadMicrocode(struct drxk_state *state,
} }
status = write_block(state, Address, BlockSize, pSrc); 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; break;
}
pSrc += BlockSize; pSrc += BlockSize;
offset += BlockSize; offset += BlockSize;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册