-
Notifications
You must be signed in to change notification settings - Fork 8.4k
tests: drivers: spi: spi_controller_peripheral: show data on failure #89869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests: drivers: spi: spi_controller_peripheral: show data on failure #89869
Conversation
204d1c0 to
390fb4d
Compare
42a9686 to
159245e
Compare
|
@tbursztyka Please have a look. |
159245e to
f54977b
Compare
|
@tbursztyka Applied your comments, please have a look. |
f54977b to
43e8c79
Compare
Show TX and RX data when there is mismatch. Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
43e8c79 to
09eefea
Compare
|
|
@tbursztyka Any clue how to fix this SonarQube issue? |
| } | ||
|
|
||
| return memcmp(tx_data, rx_data, rx_len); | ||
| len = MIN(MIN(rx_len, tx_len), MIN(sizeof(rx_data), sizeof(tx_data))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't the min on rx_len, tx_len be sufficient?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that was previous version which I added, still tool was complaning




Show TX and RX data when there is mismatch.