diff options
author | Karl Palsson <karlp@remake.is> | 2014-12-19 14:17:52 +0000 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2015-01-15 23:23:28 +0000 |
commit | 9e38365258ce0a94a2aecb3fa50dafedf08660bd (patch) | |
tree | 3d57f2dbfc521160adedbff1f12d19485c18823d /contrib/itmdump.c | |
parent | 97012f080c85e24dfd8fb3ab61d826d9e947f8e8 (diff) | |
download | riscv-openocd-9e38365258ce0a94a2aecb3fa50dafedf08660bd.zip riscv-openocd-9e38365258ce0a94a2aecb3fa50dafedf08660bd.tar.gz riscv-openocd-9e38365258ce0a94a2aecb3fa50dafedf08660bd.tar.bz2 |
contrib: itmdump: fix multi byte decoding
Incorrect byte manipulations.
Change-Id: Id8c3f457b39f4b2b75613076d403359c4972a69d
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2448
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'contrib/itmdump.c')
-rw-r--r-- | contrib/itmdump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/itmdump.c b/contrib/itmdump.c index 1c484d0..9d313ff 100644 --- a/contrib/itmdump.c +++ b/contrib/itmdump.c @@ -130,7 +130,7 @@ static bool read_varlen(FILE *f, int c, unsigned *value) *value = (buf[3] << 24) + (buf[2] << 16) - + (buf[2] << 8) + + (buf[1] << 8) + (buf[0] << 0); return true; |