Page MenuHomeFreeBSD

cam/nvme: Remove spurious newline during periph detach announcement
ClosedPublic

Authored by jhb on Jul 25 2023, 6:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 2 2024, 2:05 PM
Unknown Object (File)
May 2 2024, 2:05 PM
Unknown Object (File)
May 2 2024, 2:05 PM
Unknown Object (File)
May 2 2024, 9:04 AM
Unknown Object (File)
Mar 19 2024, 4:17 AM
Unknown Object (File)
Mar 19 2024, 4:17 AM
Unknown Object (File)
Mar 19 2024, 4:17 AM
Unknown Object (File)
Mar 14 2024, 4:09 PM
Subscribers

Details

Summary

Other protocol denounce routines use a "short" variant of announce
that does not include a trailing newline.

Sponsored by: Chelsio Communications

Diff Detail

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

Event Timeline

jhb requested review of this revision.Jul 25 2023, 6:46 PM

Before:

nda0: 1024MB (2097152 512 byte sectors)
nda0 at nvme0 bus 0 scbus0 target 0 lun 1
nda0: <Linux 5.15.0-7 7c0d1737fc54fb6b6b7b>
 s/n 7c0d1737fc54fb6b6b7b detached
(nda0:nvme0:0:0:1): Periph destroyed
nvme0: detached

After:

nda0: 1024MB (2097152 512 byte sectors)
nda0 at nvme0 bus 0 scbus0 target 0 lun 1
nda0: <Linux 5.15.0-7 7c0d1737fc54fb6b6b7b> s/n 7c0d1737fc54fb6b6b7b detached
(nda0:nvme0:0:0:1): Periph destroyed
nvme0: detached

(This doesn't do anything about the serial number being printed twice..)

sys/cam/nvme/nvme_all.c
109

This should likely be firmware version to match the other drivers

sys/cam/nvme/nvme_all.c
109

I'm not quite sure I follow, you want to reorder the fields? (And if so, that's fine, but probably as a separate commit from this)

This revision was not accepted when it landed; it landed in state Needs Review.Aug 1 2023, 10:27 PM
This revision was automatically updated to reflect the committed changes.