Repository navigation
Conversation
OCP 2.6 CITYPE-15 defines the Born on Date Additional Information as an ASCII string in MMDDYYYY format. Print it as a string in text and JSON output, as Country of Origin is. It was printed as a little-endian hex number, which reversed its bytes. Print a string field as a string only when it exists. With Additional Information Size 0h, Country of Origin printed an empty line in text and an empty string in JSON, and passed a NULL pointer to %s; it is now left out like any other empty field. Signed-off-by: Broc Going <bgoing@micron.com>
List 000Ch 'born-on-date' in the --comp-id table and narrow the reserved range to 000Dh-7FFFh, as OCP 2.6 CITYPE-13 and CITYPE-15 define them. The option has accepted born-on-date since commit 1e842b6, but the table still showed 000Ch as reserved. Signed-off-by: Broc Going <bgoing@micron.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OCP 2.6 and 2.7 define the Hardware Component log's Born on Date (000Ch) Additional Information as an ASCII
MMDDYYYYstring, butnvme ocp hardware-component-logprinted it as a little-endian hex number. Born on Date now prints as a string in text and JSON output, the same as Country of Origin.%s. It is now left out like any other empty field.born-on-date(000Ch) in the--comp-idtable of the man page, which still showed 000Ch as reserved.Adds Country of Origin and Born on Date coverage, including padding and empty fields, to
tests/cli/cmds_ocp/ocp_hwcomp_log_mock_test.py.