samples: i2c_fujitsu_fram: fix incorrect printk() usage
Change-Id: I211f3b17103e3399ca1057fcc477d526f4076255 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
7a4afccfbf
commit
cb34a2b629
1 changed files with 2 additions and 2 deletions
|
@ -140,14 +140,14 @@ void main(void)
|
|||
if (ret) {
|
||||
printk("Error writing to FRAM! (%d)\n", ret);
|
||||
} else {
|
||||
printk("Wrote %d bytes to address 0x00.\n", sizeof(cmp_data));
|
||||
printk("Wrote %zu bytes to address 0x00.\n", sizeof(cmp_data));
|
||||
}
|
||||
|
||||
ret = read_bytes(i2c_dev, 0x00, data, sizeof(data));
|
||||
if (ret) {
|
||||
printk("Error writing to FRAM! (%d)\n", ret);
|
||||
} else {
|
||||
printk("Read %d bytes from address 0x00.\n", sizeof(data));
|
||||
printk("Read %zu bytes from address 0x00.\n", sizeof(data));
|
||||
}
|
||||
|
||||
ret = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue