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)
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
Unknown Object (File)
Dec 23 2023, 1:55 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 Not Applicable
Unit
Tests Not Applicable