Skip to content

Factor out ID printing code into common.c#38

Merged
keithbusch merged 1 commit intolinux-nvme:masterfrom
pmmccorm:master
Dec 3, 2015
Merged

Factor out ID printing code into common.c#38
keithbusch merged 1 commit intolinux-nvme:masterfrom
pmmccorm:master

Conversation

@pmmccorm
Copy link
Contributor

@pmmccorm pmmccorm commented Dec 3, 2015

The printing output should be identical. The id structure
printing functions can be more or less used by lsnvme.

Signed-off-by: Patrick McCormick patrick.m.mccormick@intel.com

The printing output should be identical. The id structure
printing functions can be more or less used by lsnvme.

Signed-off-by: Patrick McCormick <patrick.m.mccormick@intel.com>
@keithbusch
Copy link
Contributor

Looks fairly uncontroversial to me, though I think we should prefer flags defined as an enum. Do you have a planned usage for the terse flag?

@pmmccorm
Copy link
Contributor Author

pmmccorm commented Dec 3, 2015

I actually had flags defined as an enum and then changed it. I can change it back.

For terse I was thinking:

lsnvme -v : terse output
lsnvme -a : entire struct
lsnvme -ah: entire struct, human readable

Something like that.

@pmmccorm
Copy link
Contributor Author

pmmccorm commented Dec 3, 2015

Updated with enum change.

keithbusch pushed a commit that referenced this pull request Dec 3, 2015
Factor out ID printing code into common.c
@keithbusch keithbusch merged commit f8843d7 into linux-nvme:master Dec 3, 2015
ikegami-t pushed a commit to ikegami-t/nvme-cli that referenced this pull request Aug 18, 2023
jimmunn pushed a commit to Micron-TPG-OSS/nvme-cli that referenced this pull request Feb 23, 2026
…inux-nvme#38)

* Merge origin/master into mingw

* Initial plan

* Fix circular dependency in platform_linux.h by removing cleanup.h include

Co-authored-by: bbusacker_micron <199673931+bbusacker_micron@users.noreply.github.com>

* use the code base standard for initializing variables

---------

Co-authored-by: Brandon Capener <bcapener@micron.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: bbusacker_micron <199673931+bbusacker_micron@users.noreply.github.com>
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