Page MenuHomeFreeBSD

fifolog: Trim some dead code and unused variables.
ClosedPublic

Authored by jhb on Jun 20 2023, 4:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 25, 8:44 AM
Unknown Object (File)
Sun, Nov 23, 1:27 AM
Unknown Object (File)
Tue, Nov 18, 3:24 AM
Unknown Object (File)
Tue, Nov 4, 4:10 AM
Unknown Object (File)
Oct 27 2025, 12:32 PM
Unknown Object (File)
Oct 26 2025, 11:55 PM
Unknown Object (File)
Oct 23 2025, 1:44 AM
Unknown Object (File)
Oct 20 2025, 3:27 AM
Subscribers

Details

Summary

The gmt_ptr and gmt variables are not used, so the call to gmtime can
be removed entirely. In addition, there isn't a need to call
localtime twice.

Reported by: GCC -Wunused-but-set-variable

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 52191
Build 49082: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Jun 20 2023, 4:33 PM

Dead code removal looks good to me, will defer to @phk to comment on whether the bug is actually missing code.

This revision is now accepted and ready to land.Jun 20 2023, 4:53 PM

I think this is OK.

FreeBSD's fifolog was originally extracted from a larger and more specialized fifolog which (also) logged some application specific data for rapid indexing, and I think the GM timestamps was part of that.