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)
Wed, Apr 10, 3:35 PM
Unknown Object (File)
Mar 11 2024, 6:13 PM
Unknown Object (File)
Mar 11 2024, 6:13 PM
Unknown Object (File)
Mar 11 2024, 6:13 PM
Unknown Object (File)
Mar 11 2024, 6:13 PM
Unknown Object (File)
Mar 11 2024, 6:12 PM
Unknown Object (File)
Mar 11 2024, 6:12 PM
Unknown Object (File)
Mar 8 2024, 3:10 AM
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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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