Skip to content

Fix hex encoding in payload String() methods - #21

Merged
halacs merged 1 commit into
halacs:masterfrom
alexbartok:fix/hex-encoding-logging
Apr 1, 2026
Merged

Fix hex encoding in payload String() methods#21
halacs merged 1 commit into
halacs:masterfrom
alexbartok:fix/hex-encoding-logging

Conversation

@alexbartok

Copy link
Copy Markdown
Contributor

Good catch on the logging in #19, sorry about that! Fixed the String() methods in the payload types from #20 (GetPortsResponse, GetType, GetTypeResponse) to use %X instead of %s for byte data. Also set the missing dataLength in GetPortsResponsePayload for consistency.

Looks like the other payload String() methods have the same %s issue with byte data - happy to send a cleanup PR for those too if you'd like.

Fix String() methods in GetPortsResponse, GetType, and GetTypeResponse
to use %X instead of %s for byte data. Also set dataLength in
GetPortsResponsePayload for consistency with other payload constructors.
@halacs
halacs merged commit d31a5e8 into halacs:master Apr 1, 2026
3 checks passed
@alexbartok
alexbartok deleted the fix/hex-encoding-logging branch April 1, 2026 19:59
@halacs

halacs commented Apr 1, 2026

Copy link
Copy Markdown
Owner

Thanks!
I like your pure formatting string based hex logging. Simpler is better.

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