Commit d2613306 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] cycx_drv warning fix

From: Alan Cox <alan@redhat.com>

Type errors, just fixes a warning
parent 3947d3ad
......@@ -425,8 +425,8 @@ static int load_cyc2x(struct cycx_hw *hw, struct cycx_firmware *cfm, u32 len)
if (cksum != cfm->checksum) {
printk(KERN_ERR "%s:%s: firmware corrupted!\n",
modname, __FUNCTION__);
printk(KERN_ERR " cdsize = 0x%lx (expected 0x%lx)\n",
len - sizeof(struct cycx_firmware) - 1,
printk(KERN_ERR " cdsize = 0x%x (expected 0x%x)\n",
len - (int)sizeof(struct cycx_firmware) - 1,
cfm->info.codesize);
printk(KERN_ERR " chksum = 0x%x (expected 0x%x)\n",
cksum, cfm->checksum);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment