Skip to content

Conversation

@sharkcz
Copy link
Contributor

@sharkcz sharkcz commented May 22, 2025

  • the wwpn struct member is uint64_t, so update the formatting string to lx as we are building for 64-bit platforms. Another option would be to use PRIx64 from `<inttypes.h>.
  • the d_id member is uint32_t, so rather typecast the local variable to it and keep the x formatter.

sharkcz added 2 commits May 22, 2025 09:25
Use %lx format when printing WWPN data stored in uint64_t variables/members
as we are building on 64-bit systems exclusively and uint64_t is "long
unsigned int" there.

Signed-off-by: Dan Horák <dan@danny.cz>
Typecast the temp dest_val variable to uint32_t to match the data in it
before printing.

Signed-off-by: Dan Horák <dan@danny.cz>
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