mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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
This commit is contained in:
parent
9276ad23b8
commit
8a0ee30622
1 changed files with 1 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue