Page MenuHomeFreeBSD

libsa/rarp.c: Change casted type and printf format string
ClosedPublic

Authored by mig_semihalf.com on Sep 27 2022, 1:07 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 11, 4:17 PM
Unknown Object (File)
Sun, Oct 5, 12:34 AM
Unknown Object (File)
Sat, Oct 4, 10:09 AM
Unknown Object (File)
Sat, Oct 4, 5:11 AM
Unknown Object (File)
Sun, Sep 28, 8:03 PM
Unknown Object (File)
Aug 17 2025, 10:22 PM
Unknown Object (File)
Aug 11 2025, 6:19 AM
Unknown Object (File)
Jul 6 2025, 9:15 PM
Subscribers

Details

Summary

Change the casted type and printf format string to avoid compilation
termination when RARP_DEBUG macro is defined. Reflect the printf in
libsa/udp.c.

Test Plan

In stand/libsa/rarp.c after all #include's add:
#define RARP_DEBUG
temporary directory to hold compilation files:
mkdir -p $HOME/obj
set appropriate environmental variables, e.g. ARCH=arm64, TARGET_ARCH=aarch64, MAKEOBJDIRPREFIX=$HOME/obj.
In stand/libsa:
sudo -E make buildenv
make
compliation ends with error.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable