The branch main has been updated by ronald:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=8a0ee306227a17a998bdc7af2275fd94b9164342

commit 8a0ee306227a17a998bdc7af2275fd94b9164342
Author:     Ronald Klop <[email protected]>
AuthorDate: 2023-12-07 16:46:58 +0000
Commit:     Ronald Klop <[email protected]>
CommitDate: 2023-12-07 16:50:28 +0000

    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
---
 sys/dev/usb/net/if_smsc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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",

Reply via email to