Trace the read data in stlink_read_debug32 and not the address of the variable.
authorTobias Badertscher <python@baerospace.ch>
Sat, 2 Apr 2016 16:18:39 +0000 (18:18 +0200)
committerTobias Badertscher <python@baerospace.ch>
Sat, 2 Apr 2016 16:18:39 +0000 (18:18 +0200)
src/stlink-common.c

index 6d126d32071f58e132bf6922f1f0898e585f5048..3a6e260d1706c194641e36daf4516d671d75037f 100644 (file)
@@ -732,7 +732,7 @@ int stlink_read_debug32(stlink_t *sl, uint32_t addr, uint32_t *data) {
 
     ret = sl->backend->read_debug32(sl, addr, data);
     if (!ret)
-           DLOG("*** stlink_read_debug32 %x is %#x\n", data, addr);
+           DLOG("*** stlink_read_debug32 %x is %#x\n", *data, addr);
 
        return ret;
 }