Page MenuHomeFreeBSD

Summary: Migrate from printb to print_bits for locally defined bit fields.
ClosedPublic

Authored by gordon on Jun 1 2024, 3:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Feb 10, 12:28 PM
Unknown Object (File)
Sat, Feb 8, 7:59 PM
Unknown Object (File)
Sat, Feb 8, 4:03 AM
Unknown Object (File)
Thu, Feb 6, 11:13 PM
Unknown Object (File)
Mon, Feb 3, 11:54 PM
Unknown Object (File)
Dec 4 2024, 5:30 AM
Unknown Object (File)
Nov 27 2024, 5:50 PM
Unknown Object (File)
Nov 27 2024, 5:49 PM
Subscribers

Diff Detail

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

Event Timeline

gordon requested review of this revision.Jun 1 2024, 3:58 PM
sbin/ifconfig/af_nd6.c
56 ↗(On Diff #139306)
66–67 ↗(On Diff #139306)

you could move the #ifdef to just make these two conditional now?

181 ↗(On Diff #139306)

If refactoring I'd drop this pseduo-bit-15 hack here and just add a if (isdefif) printf("...")
assuming isdefif is in fact boolean and there isn't some magic here

gordon added inline comments.
sbin/ifconfig/af_nd6.c
181 ↗(On Diff #139306)

I don't think I'm going to try to change the logic here. At least not with this change.

Address comments from emaste.

This revision is now accepted and ready to land.Jun 3 2024, 3:16 PM
  • Move print_bits to ifconfig.c and make available to other src files.
  • Migrate from printb to print_bits for locally defined bit fields.
This revision now requires review to proceed.Jun 3 2024, 3:18 PM
This revision was not accepted when it landed; it landed in state Needs Review.Jun 3 2024, 3:52 PM
This revision was automatically updated to reflect the committed changes.