gdbserver: use uglylogging logging
authorMichael Pratt <michael@pratt.im>
Sat, 12 Jul 2014 20:19:41 +0000 (13:19 -0700)
committerMichael Pratt <michael@pratt.im>
Sat, 12 Jul 2014 20:23:24 +0000 (13:23 -0700)
commit3c3b02e83e358edee5e704eb61b96d7d1561ff42
treefc00ac1aa8e93e4bd03ceb7f2de1c104de4db107
parentdae71f4a8e8a24753cfbcaa984fa67c84c0f7a90
gdbserver: use uglylogging logging

Rather than putting debug printing in #ifdef blocks, use the same
uglylogging framework used by core stlink code.

To support this, the *LOG() macros are moved into the uglylogging.h
header file, and always use the filename as the logging tag.
gdbserver/gdb-server.c
gdbserver/gdb-server.h [new file with mode: 0644]
src/stlink-common.c
src/stlink-sg.c
src/stlink-usb.c
src/test_sg.c
src/uglylogging.h