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
F96958856: D36738.diff
Fri, Sep 27, 7:22 AM
Unknown Object (File)
Tue, Sep 17, 12:20 AM
Unknown Object (File)
Wed, Sep 4, 7:25 AM
Unknown Object (File)
Mon, Sep 2, 9:59 PM
Unknown Object (File)
Jul 30 2024, 5:06 PM
Unknown Object (File)
Jun 3 2024, 1:08 AM
Unknown Object (File)
Apr 7 2024, 8:02 AM
Unknown Object (File)
Apr 7 2024, 7:07 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