Page MenuHomeFreeBSD

savecore: emit information about saved cores under verbose
ClosedPublic

Authored by kevans on Aug 3 2021, 4:10 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 12:01 PM
Unknown Object (File)
Thu, Nov 21, 8:23 AM
Unknown Object (File)
Wed, Nov 20, 10:55 PM
Unknown Object (File)
Wed, Nov 20, 3:11 PM
Unknown Object (File)
Fri, Nov 15, 7:14 AM
Unknown Object (File)
Thu, Nov 14, 10:07 PM
Unknown Object (File)
Thu, Nov 14, 7:30 PM
Unknown Object (File)
Thu, Nov 14, 5:57 PM
Subscribers

Details

Summary

Declare how many cores we saved, and where we saved them to. Drop a
comment about emitting little information; it's obvious from the block
in question that we emit nothing without verbose.

Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.
X-NetApp-PR: #65

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 43224
Build 40112: arc lint + arc unit

Event Timeline

kevans requested review of this revision.Aug 3 2021, 4:10 AM
sbin/savecore/savecore.c
1318–1319

This comment should probably be deleted.

1322

savecore calls openlog() with LOG_PERROR, so messages logged with logmsg() go to standard error. So we are effectively printing the same message twice when -v is specified.

1336

We consistently omit a period in other messages.

sbin/savecore/savecore.c
1322

I was going to collapse them down into just one, but looking back we intentionally killed off messages in the default path back in 2015. Perhaps this change should just be dropped instead...

sbin/savecore/savecore.c
1322

One can always set savecore_flags=-v in rc.conf if desired...

kevans marked 3 inline comments as done.

Drop comment, just add message about \# cores saved and where on verbose runs.

Commit message update incoming.

Correct diff; drop the period.

kevans retitled this revision from savecore: be a little more verbose to savecore: emit information about saved cores under verbose.Dec 7 2021, 4:07 AM
kevans edited the summary of this revision. (Show Details)
kevans added a reviewer: mhorne.
sbin/savecore/savecore.c
1336

Should this be using logmsg()?

kevans marked an inline comment as done.

Use logmsg(), level LOG_NOTICE

This revision is now accepted and ready to land.Dec 7 2021, 11:48 PM