Page MenuHomeFreeBSD

sound: Remove hw.snd.version and SND_DRV_VERSION
ClosedPublic

Authored by christos on Sun, Apr 28, 5:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 8, 1:11 PM
Unknown Object (File)
Mon, May 6, 7:55 PM
Unknown Object (File)
Wed, May 1, 1:10 AM
Unknown Object (File)
Tue, Apr 30, 6:23 PM
Unknown Object (File)
Tue, Apr 30, 2:10 PM
Unknown Object (File)
Tue, Apr 30, 7:57 AM
Unknown Object (File)
Tue, Apr 30, 7:57 AM
Unknown Object (File)
Tue, Apr 30, 7:57 AM
Subscribers

Details

Summary

hw.snd.version and SND_DRV_VERSION define the sound driver version and
are meant to be used in bug reports, but because these values are
constant, there is not much useful information we can extract from them.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Diff Detail

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

Event Timeline

christos retitled this revision from sound: Move SND_DRV_VERSION to pcm/sound.h to sound: Remove hw.snd.version and SND_DRV_VERSION.Mon, Apr 29, 12:21 PM
christos edited the summary of this revision. (Show Details)
christos added a reviewer: dev_submerge.ch.

Remove "%ubit" line from sbuf_printf() in sndstat.c, MACHINE_ARCH includes the
bits already.

Looks reasonable - I think it was addressing an issue that does not really exist now.

sys/dev/sound/pcm/sndstat.c
1273–1275

is even this useful? MACHINE_ARCH is certainly emitted somewhere else already

sys/dev/sound/pcm/sndstat.c
1273–1275

is even this useful? MACHINE_ARCH is certainly emitted somewhere else already

Depends on whether we expect people to always provide uname -a in bug reports. I think the revision of FreeBSD could be more helpful here, as in 14.0-RELEASE-p6, or even commit level for CURRENT if we can get those easily.

sys/dev/sound/pcm/sndstat.c
1273–1275

is even this useful? MACHINE_ARCH is certainly emitted somewhere else already

It isn't emitted anywhere else in sound(4) at least, but I do not think it hurts to include it in the sndstat header.

Depends on whether we expect people to always provide uname -a in bug reports. I think the revision of FreeBSD could be more helpful here, as in 14.0-RELEASE-p6, or even commit level for CURRENT if we can get those easily.

I guess a more accurate way would be to provide the latest sound(4)-related commit hash, along with the FreeBSD revision, but I am not sure if we need to provide this information from sound(4) itself.

sys/dev/sound/pcm/sndstat.c
1273–1275

I think users are generally good about providing version info these days (and if they aren't, this isn't going to help). I don't see any reason to duplicate it.

christos marked 3 inline comments as done.
  • Remove MACHINE_ARCH from sndstat header.
  • Add RELNOTES entry.

Ignore the RELNOTES entry below the new one. I just didn't diff against main.

This revision is now accepted and ready to land.Tue, Apr 30, 10:46 PM