changeset 190:405f5b46cdc4

fc-tmsh: some buglets fixed
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 25 Nov 2013 03:23:19 +0000
parents a95d253ef952
children cf8583923dc4
files rvinterf/etm/tmcore.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rvinterf/etm/tmcore.c	Mon Nov 25 03:10:41 2013 +0000
+++ b/rvinterf/etm/tmcore.c	Mon Nov 25 03:23:19 2013 +0000
@@ -85,7 +85,7 @@
 	off = 6;
 	for (i = 0; i < num; i++) {
 		d = rvi_msg[off] | rvi_msg[off+1] << 8 | rvi_msg[off+2] << 16
-			| rvi_msg[off+3];
+			| rvi_msg[off+3] << 24;
 		off += 4;
 		sprintf(dp, " %08X", d);
 		dp += 9;
@@ -105,7 +105,7 @@
 	}
 	num = rvi_msg_len - 6;
 	strcpy(buf, "dieid resp:");
-	dp = buf + 3;
+	dp = buf + 11;
 	for (i = 0; i < num; i++) {
 		sprintf(dp, " %02X", rvi_msg[i+5]);
 		dp += 3;