This is an automated email from Gerrit.

Paul Fertser ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/2448

-- gerrit

commit e9c855051283022e9b84a91906ed6eb42227abd0
Author: Karl Palsson <[email protected]>
Date:   Fri Dec 19 14:17:52 2014 +0000

    contrib: itmdump: fix multi byte decoding
    
    Incorrect byte manipulations.
    
    Change-Id: Id8c3f457b39f4b2b75613076d403359c4972a69d
    Signed-off-by: Karl Palsson <[email protected]>
    Signed-off-by: Paul Fertser <[email protected]>

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;
 

-- 

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to