From 4e95d10aa8d734f873ec32300cae531929a33c3a Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Fri, 7 Oct 2011 20:21:37 +0000 Subject: [PATCH] move debugging output to common code --- src/stlink-common.c | 2 ++ src/stlink-sg.c | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/stlink-common.c b/src/stlink-common.c index 5f1e0c3..93b5e76 100644 --- a/src/stlink-common.c +++ b/src/stlink-common.c @@ -280,6 +280,8 @@ void stlink_exit_dfu_mode(stlink_t *sl) { void stlink_core_id(stlink_t *sl) { D(sl, "\n*** stlink_core_id ***\n"); sl->backend->core_id(sl); + if (sl->verbose > 2) + stlink_print_data(sl); DD(sl, "core_id = 0x%08x\n", sl->core_id); } diff --git a/src/stlink-sg.c b/src/stlink-sg.c index 63640e6..86238be 100644 --- a/src/stlink-sg.c +++ b/src/stlink-sg.c @@ -421,9 +421,6 @@ void _stlink_sg_core_id(stlink_t *sl) { sg->q_addr = 0; stlink_q(sl); sl->core_id = read_uint32(sl->q_buf, 0); - if (sl->verbose < 2) - return; - stlink_print_data(sl); } // Arm-core reset -> halted state. -- 2.30.2