Linaro / OpenCSD

CoreSight trace stream decoder developed openly
https://github.com/Linaro/opencsd/wiki
Other
141 stars 53 forks source link

opencsd: Fix -id check in trc_pkt_lister #2

Closed vitkyrka closed 8 years ago

vitkyrka commented 8 years ago

The -id parameter range checking has two problems:

(1) It rejects valid ids such as 0x55 because it checks for decimal 70 instead of hex

(2) The error message prints the id in ASCII instead of in hex

Fix these.

Signed-off-by: Rabin Vincent rabinv@axis.com

mathieupoirier commented 8 years ago

Thanks for the code - Mike will be back next week and will review then.

mikel-armbb commented 8 years ago

Thanks. Will appear in v0.4.1 library release.