diff options
author | Yauheni Kaliuta <y.kaliuta@gmail.com> | 2009-10-13 20:00:46 +0300 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2009-10-13 19:16:57 +0200 |
commit | 6a2fd7cad507ef24a7dc4ce3c5f8b5351dd12656 (patch) | |
tree | 2b0cff45b7feff53d835ed4e59ecf0750fb60e4d /contrib/libdcc | |
parent | bc0cc62afd7e84432727f470f74d4fb2b405ce35 (diff) | |
download | openocd+libswd-6a2fd7cad507ef24a7dc4ce3c5f8b5351dd12656.tar.gz openocd+libswd-6a2fd7cad507ef24a7dc4ce3c5f8b5351dd12656.tar.bz2 openocd+libswd-6a2fd7cad507ef24a7dc4ce3c5f8b5351dd12656.tar.xz openocd+libswd-6a2fd7cad507ef24a7dc4ce3c5f8b5351dd12656.zip |
Cleanup: nuke trailling whitespaces
Signed-off-by: Yauheni Kaliuta <y.kaliuta@gmail.com>
Diffstat (limited to 'contrib/libdcc')
-rw-r--r-- | contrib/libdcc/dcc_stdio.c | 4 | ||||
-rw-r--r-- | contrib/libdcc/example.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/contrib/libdcc/dcc_stdio.c b/contrib/libdcc/dcc_stdio.c index a25e7dd1..08a49abf 100644 --- a/contrib/libdcc/dcc_stdio.c +++ b/contrib/libdcc/dcc_stdio.c @@ -99,7 +99,7 @@ void dbg_write_u16(const unsigned short *val, long len) while (len > 0) { - dcc_data = val[0] + dcc_data = val[0] | ((len > 1) ? val[1] << 16: 0x0000); dbg_write(dcc_data); @@ -145,7 +145,7 @@ void dbg_write_str(const char *msg) | ((len > 2) ? msg[2] << 16 : 0x00) | ((len > 3) ? msg[3] << 24 : 0x00); dbg_write(dcc_data); - + msg += 4; len -= 4; } diff --git a/contrib/libdcc/example.c b/contrib/libdcc/example.c index d456f395..0814c9ce 100644 --- a/contrib/libdcc/example.c +++ b/contrib/libdcc/example.c @@ -23,11 +23,11 @@ #include "dcc_stdio.h" /* enable openocd debugmsg at the gdb prompt: - * monitor target_request debugmsgs enable - * + * monitor target_request debugmsgs enable + * * create a trace point: * monitor trace point 1 - * + * * to show how often the trace point was hit: * monitor trace point */ |