From 9e38365258ce0a94a2aecb3fa50dafedf08660bd Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Fri, 19 Dec 2014 14:17:52 +0000 Subject: [PATCH] contrib: itmdump: fix multi byte decoding Incorrect byte manipulations. Change-Id: Id8c3f457b39f4b2b75613076d403359c4972a69d Signed-off-by: Karl Palsson Signed-off-by: Paul Fertser Reviewed-on: http://openocd.zylin.com/2448 Tested-by: jenkins Reviewed-by: Spencer Oliver --- contrib/itmdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/itmdump.c b/contrib/itmdump.c index 1c484d0a..9d313ffb 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; -- 2.39.5