]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nvme: Firmware revisions in the firmware slot info logpage are ASCII strings
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 1 Mar 2024 22:18:43 +0000 (14:18 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 1 Mar 2024 22:18:43 +0000 (14:18 -0800)
commit7485926e09a08fbfe83a9bc908e7d43aaca4c172
tree16da8abdcddd5557d87a06e65bc70b5d0fc37c5b
parent638b5ae1c7858373344bc7b9dcb5a1e7fab80bd9
nvme: Firmware revisions in the firmware slot info logpage are ASCII strings

In particular, don't try to byteswap the values as 64-bit integers and
always print a non-empty version as a string.

Reviewed by: chuck, imp
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D44121
sbin/nvmecontrol/logpage.c
sys/dev/nvme/nvme.h
sys/dev/nvme/nvme_ctrlr.c