Skip to content
Browse files

Turn down default logging level.

And remove dead/duplicate code that is included in the opening of the device
  • Loading branch information...
1 parent e509310 commit d019d3fc4f34297a78bf8c38c5a06053b2707862 @karlp karlp committed Nov 14, 2011
Showing with 3 additions and 12 deletions.
  1. +3 −12 gdbserver/gdb-server.c
View
15 gdbserver/gdb-server.c
@@ -21,7 +21,7 @@
#include "gdb-remote.h"
-#define DEFAULT_LOGGING_LEVEL 100
+#define DEFAULT_LOGGING_LEVEL 50
#define DEFAULT_GDB_LISTEN_PORT 4242
#define STRINGIFY_inner(name) #name
@@ -169,17 +169,8 @@ int main(int argc, char** argv) {
break;
}
- // ALLLL of this should move into "stlink_open_xxx"
-
- if (stlink_current_mode(sl) != STLINK_DEV_DEBUG_MODE) {
- if (stlink_current_mode(sl) == STLINK_DEV_DFU_MODE) {
- stlink_exit_dfu_mode(sl);
- }
- stlink_enter_swd_mode(sl);
- }
-
- uint32_t chip_id = stlink_chip_id(sl);
- uint32_t core_id = stlink_core_id(sl);
+ uint32_t chip_id = sl->chip_id;
+ uint32_t core_id = sl->core_id;
/* Fix chip_id for F4 */
if (((chip_id & 0xFFF) == 0x411) && (core_id == CORE_M4_R0)) {

0 comments on commit d019d3f

Please sign in to comment.
Something went wrong with that request. Please try again.