#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]); \
}
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);
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 */
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 */