-
Notifications
You must be signed in to change notification settings - Fork 8.2k
tests: Bluetooth: Tester: Format BTP cmd/evt/rsp logs as hex #80740
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
Conversation
8da0a3a to
309f52a
Compare
tests/bluetooth/tester/src/btp.c
Outdated
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.
services are defined as decimal
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.
🙃
309f52a to
c926b0b
Compare
|
@sjanc In the autopts client everything seems to be logged as decimal, e.g. We really should align these so that it's possible to compare not only the definitions, but also the logs. Is there a reason why the services are decimal? |
sjanc
left a comment
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.
no reason (other than it is defined like this in autopts docs), we should just switch to hex everywhere
Since the values are defined as hex, e.g. 0x82, it is easier to compare with the log if they also log them as such. Signed-off-by: Emil Gydesen <[email protected]>
Everything else is defined as hex, so it makes sense to be consistent. This will also make it easier to find the service IDs in the logs that primarily already log commands and events as hex. Signed-off-by: Emil Gydesen <[email protected]>
c926b0b to
c62cac5
Compare
|
Since auto-pts/auto-pts#1292 got merged in the auto-pts repo, I pulled in the commit to also change the service to be hexidecimal in this PR. |
Since the values are defined as hex, e.g. 0x82, it is easier to compare with the log if they also log them as such.