Skip to content

doc: add error-log command description for fields and ordering#3344

Merged
igaw merged 7 commits into
linux-nvme:masterfrom
ikegami-t:doc-error-log
May 12, 2026
Merged

doc: add error-log command description for fields and ordering#3344
igaw merged 7 commits into
linux-nvme:masterfrom
ikegami-t:doc-error-log

Conversation

@ikegami-t
Copy link
Copy Markdown
Contributor

As all fields including the ordering described in the spec.

As all fields including the ordering described in the spec.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
@ikegami-t
Copy link
Copy Markdown
Contributor Author

Currently added 9 commits for the error-log command changes then if needed will do combine the commits or separate the PR so please let me know.

Comment thread nvme.c
const char *trtype = "output specified TRTYPE entry only";
const char *opcode = "output specified OPC entry only";
const char *sqid = "output specified SQID entry only";
const char *valid_entry = "output valid entry only";
Copy link
Copy Markdown
Collaborator

@igaw igaw May 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as far I can tell, valid_entry is not used anymore. Maybe you could merge this patches together so it's only one patch? I mean the patches which introduce this filter logic.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No still the valid-entry option is used so needed to remain. Okay I will do merge the patches to introduce the filter logic.

Comment thread nvme-print-json.c Outdated
obj_add_str(error, "no error", "all entries filtered");
array_add_obj(errors, error);
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we should add this at all. The users asked for filtering and if there are no entries, we just return an empty array, no?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just followed as same with the stdout output but yes will do delete the object for the json output.

@igaw
Copy link
Copy Markdown
Collaborator

igaw commented May 11, 2026

Looks good, I would just merge the filter logic patches into one.

Could also update the documentation and the shell completion? But this can go also afterwards. Thanks!

ikegami-t added 6 commits May 13, 2026 00:20
Add valid-entry option argument to filter invalid entries.
Also add status, LBA and nsid etc,. fields option arguments to filter.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Since incorrectly some fields are printed as little endian.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
This is to align the function coding style.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Since previously only added the fields for the print-stdout.

Fixes: 90d9c1a ("print: print csi and opcode in error log (TP4113)")
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Fix the maximum line length 80 warnings.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Use it to get the phase tag and status fields values.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
@ikegami-t
Copy link
Copy Markdown
Contributor Author

Just fixed the patches as metioned. Sorry let me update the documentation and the shell completion separately. I will do that later by additional a patch or PR. Thank you.

@igaw igaw merged commit cc14f50 into linux-nvme:master May 12, 2026
29 of 30 checks passed
@igaw
Copy link
Copy Markdown
Collaborator

igaw commented May 12, 2026

Thanks!

@ikegami-t ikegami-t mentioned this pull request May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants