Skip to content

Commit ab1756b

Browse files
author
grau
committed
Improve debugging message
1 parent 66e5e57 commit ab1756b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/org/deepjava/openOCDInterface/OpenOCD.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ public int getTargetState() throws TargetConnectionException {
180180
public void startTarget(int address) throws TargetConnectionException {
181181
try {
182182
if (address != -1) {
183-
if (dbg) StdStreams.vrb.println("[TARGET] arm: Starting from 0x" + Integer.toHexString(address));
184-
out.write((("resume " + address + "\r\n").getBytes()));
183+
if (dbg) StdStreams.vrb.println("[TARGET] arm: Starting from 0x" + Integer.toHexString(address));
184+
out.write((("resume " + address + "\r\n").getBytes()));
185185
} else {
186186
if (dbg) StdStreams.vrb.println("[TARGET] Resume target");
187187
out.write(("resume\r\n".getBytes()));
@@ -344,7 +344,7 @@ public void downloadImageFile(String filename) throws TargetConnectionException
344344
name = name.replace('\\', '/');
345345
StdStreams.log.println("Downloading " + name);
346346
out.write((("load_image " + name + " " + file.getValue() + " \r\n").getBytes()));
347-
if (dbg) StdStreams.vrb.println("[TARGET] loading: " + name);
347+
if (dbg) StdStreams.vrb.println("[TARGET] loading: " + name + " to addr 0x" + Integer.toHexString(file.getValue()));
348348
buf = new StringBuffer();
349349
while (true) {
350350
int n = in.available();

0 commit comments

Comments
 (0)