Skip to content

Conversation

@jeff-lien-sndk
Copy link
Contributor

The function print_formatted_var_size_str (in util/utils.c) which is used to print the telemetry statistics additional data had a string array (used for printing out the data) with a hard coded length of 1024 chars. The Stats data with 80 DW's of data would exceed the size of that array. Therefore, the code was changed to allocate a buffer large enough to contain the full string data.

…_str

These 2 functions, used by the ocp plugin, had string arrays
with hard coded lengths.  In some cases, the hard coded length
was not long enough for strings that were being printed.
The functions were changed to allocate a buffers long enough
to contain the full string.

Updated the OCP plugin version to 2.12.0

Signed-off-by: jeff-lien-wdc <[email protected]>
@igaw igaw merged commit 7a16036 into linux-nvme:master Apr 2, 2025
17 checks passed
@igaw
Copy link
Collaborator

igaw commented Apr 2, 2025

Thanks!

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