boards/arm/samv7/same70-xplained/src/sam_ethernet.c: Fix a syslog format

This commit is contained in:
YAMAMOTO Takashi 2020-12-02 07:14:31 +09:00 committed by Xiang Xiao
parent e973f644ad
commit ec5079c9ff
1 changed files with 2 additions and 2 deletions

View File

@ -189,8 +189,8 @@ int sam_emac0_setmac(void)
nread = at24->read(at24, AT24XX_MACADDR_OFFSET, 6, mac);
if (nread < 6)
{
nerr("ERROR: AT24 read(AT24XX_MACADDR_OFFSET) failed: ld\n",
(long)nread);
nerr("ERROR: AT24 read(AT24XX_MACADDR_OFFSET) failed: %zd\n",
nread);
sam_i2cbus_uninitialize(i2c);
return (int)nread;
}