Commit 6ef194f6 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] 64bit fixes (printks)

the usual %d -> %zu for size_t
Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5a0feb4b
......@@ -65,7 +65,7 @@ extern int dib3000_search_status(u16 irq,u16 lock);
#define wr_foreach(a,v) { int i; \
if (sizeof(a) != sizeof(v)) \
err("sizeof: %d %d is different",sizeof(a),sizeof(v));\
err("sizeof: %zu %zu is different",sizeof(a),sizeof(v));\
for (i=0; i < sizeof(a)/sizeof(u16); i++) \
wr(a[i],v[i]); \
}
......
......@@ -246,7 +246,7 @@ static int nxt2002_load_firmware (struct dvb_frontend* fe, const struct firmware
u16 rambase,position,crc = 0;
dprintk("%s\n", __FUNCTION__);
dprintk("Firmware is %d bytes\n",fw->size);
dprintk("Firmware is %zu bytes\n",fw->size);
/* Get the RAM base for this nxt2002 */
i2c_readbytes(state,0x10,buf,1);
......
......@@ -494,7 +494,7 @@ static void speedtch_upload_firmware(struct speedtch_instance_data *instance,
dbg("speedtch_upload_firmware: write BLOCK1 to modem failed (%d)!", ret);
goto fail_release;
}
dbg("speedtch_upload_firmware: BLOCK1 uploaded (%d bytes)", fw1->size);
dbg("speedtch_upload_firmware: BLOCK1 uploaded (%zu bytes)", fw1->size);
}
/* USB led blinking green, ADSL led off */
......@@ -522,7 +522,7 @@ static void speedtch_upload_firmware(struct speedtch_instance_data *instance,
goto fail_release;
}
}
dbg("speedtch_upload_firmware: BLOCK3 uploaded (%d bytes)", fw2->size);
dbg("speedtch_upload_firmware: BLOCK3 uploaded (%zu bytes)", fw2->size);
/* USB led static green, ADSL led static red */
......
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