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
F157539520: D36738.id111177.diff
Fri, May 22, 2:31 PM
F157470311: D36738.id111177.diff
Thu, May 21, 7:49 PM
Unknown Object (File)
Thu, May 21, 6:27 PM
Unknown Object (File)
Thu, May 21, 5:42 PM
Unknown Object (File)
Sun, May 17, 1:21 AM
Unknown Object (File)
Fri, May 1, 12:22 PM
Unknown Object (File)
Thu, Apr 30, 7:33 AM
Unknown Object (File)
Thu, Apr 30, 3:08 AM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 47556
Build 44443: arc lint + arc unit