From 0e81c2d95dbad793dfe2a4a519be4fa99d0e5757 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 4 Dec 2020 14:04:20 +0900 Subject: [PATCH] boards/arm/samv7/samv71-xult/src/sam_ethernet.c: Fix a syslog format --- boards/arm/samv7/samv71-xult/src/sam_ethernet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/arm/samv7/samv71-xult/src/sam_ethernet.c b/boards/arm/samv7/samv71-xult/src/sam_ethernet.c index 5bda727ecd..15e41a1ff2 100644 --- a/boards/arm/samv7/samv71-xult/src/sam_ethernet.c +++ b/boards/arm/samv7/samv71-xult/src/sam_ethernet.c @@ -193,8 +193,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; }