diff options
author | Ronald Klop <ronald@FreeBSD.org> | 2023-12-07 16:46:58 +0000 |
---|---|---|
committer | Ronald Klop <ronald@FreeBSD.org> | 2023-12-07 16:50:28 +0000 |
commit | 8a0ee306227a17a998bdc7af2275fd94b9164342 (patch) | |
tree | 67b055bb59362f31afc6ddc96e15d0f69b077a1b | |
parent | 9276ad23b872eddc42e05304acb10bf5421b043c (diff) | |
download | src-8a0ee306227a17a998bdc7af2275fd94b9164342.tar.gz src-8a0ee306227a17a998bdc7af2275fd94b9164342.zip |
if_smsc: fix build on armv6 & armv7
compile error was:
/usr/src/sys/dev/usb/net/if_smsc.c:1597:40: error: format specifies type 'unsigned long' but the argument has type 'ssize_t' (aka 'int') [-Werror,-Wformat]
"failed alloc for bootargs (%lu)", len);
~~~ ^~~
%zd
PR: 274092
Approved by: karels
MFC after: 1 month
-rw-r--r-- | sys/dev/usb/net/if_smsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/net/if_smsc.c b/sys/dev/usb/net/if_smsc.c index 54b18e0a67c9..a59501b6bbff 100644 --- a/sys/dev/usb/net/if_smsc.c +++ b/sys/dev/usb/net/if_smsc.c @@ -1594,7 +1594,7 @@ smsc_bootargs_get_mac_addr(device_t dev, struct usb_ether *ue) len = OF_getprop_alloc(node, "bootargs", (void **)&bootargs); if (len == -1 || bootargs == NULL) { smsc_warn_printf((struct smsc_softc *)ue->ue_sc, - "failed alloc for bootargs (%lu)", len); + "failed alloc for bootargs (%zd)", len); return (false); } smsc_dbg_printf((struct smsc_softc *)ue->ue_sc, "bootargs: %s.\n", |