Skip to content

A couple more minor bug fixes - #71

Open
lsgunth wants to merge 2 commits into
SamsungDS:mainfrom
Eideticom:upstream-example-fixes
Open

A couple more minor bug fixes#71
lsgunth wants to merge 2 commits into
SamsungDS:mainfrom
Eideticom:upstream-example-fixes

Conversation

@lsgunth

@lsgunth lsgunth commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

We noticed a couple more minor issues in the code the other day and made a couple patches for them:

  1. Use the correct format specifier when printing the vid. It is a 16bit value but was printed with an 8 bit specifier in the README example and identify.c

  2. In regs.c, VS_TERM and VS_MJR were incorrectly ordered

vid is 16 bits wide but is printed with PRIx8. gcc accepts it, since the
argument is promoted to int either way, but clang rejects it under
-Werror.

The compiler builds in CI configure with -Dlibnvme=disabled, which makes
libnvme a disabler and skips the examples entirely, so nothing has been
compiling this with clang.

Signed-off-by: Logan Gunthorpe <logan.gunthorpe@eideticom.com>
VS.MJR prints the tertiary version and VS.TER the major one, so the
example reports the wrong controller version.

Signed-off-by: Logan Gunthorpe <logan.gunthorpe@eideticom.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.

1 participant