Skip to content

[action] [PR:3267] Fix double hex to decimal conversion (#3267)#3379

Merged
mssonicbld merged 1 commit intosonic-net:202311from
mssonicbld:cherry/202311/3267
Jun 20, 2024
Merged

[action] [PR:3267] Fix double hex to decimal conversion (#3267)#3379
mssonicbld merged 1 commit intosonic-net:202311from
mssonicbld:cherry/202311/3267

Conversation

@mssonicbld
Copy link
Collaborator

In the previous commit with hash a3cf5c that aimed to address the issue
where sfputil incorrectly interpreted page numbers as decimal instead of
hexadecimal, there was an inadvertent double conversion from hexadecimal
to decimal. For instance, inputting 11 resulted in conversion to 17 and
then further to 23. To rectify this, the second conversion would be
removed.

A related ut has also been added.

Signed-off-by: Yuanzhe, Liu [email protected]

In the previous commit with hash a3cf5c that aimed to address the issue
where sfputil incorrectly interpreted page numbers as decimal instead of
hexadecimal, there was an inadvertent double conversion from hexadecimal
to decimal. For instance, inputting 11 resulted in conversion to 17 and
then further to 23. To rectify this, the second conversion would be
removed.

A related ut has also been added.

Signed-off-by: Yuanzhe, Liu <[email protected]>
@mssonicbld
Copy link
Collaborator Author

Original PR: #3267

@mssonicbld mssonicbld merged commit 2d7c6cd into sonic-net:202311 Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants