diff --git a/jtag/src/tap/cable/jlink.c b/jtag/src/tap/cable/jlink.c index 3c685de6..e50bb8e5 100644 --- a/jtag/src/tap/cable/jlink.c +++ b/jtag/src/tap/cable/jlink.c @@ -48,9 +48,9 @@ #include #include -#define INFO printf -#define ERROR printf -#define DEBUG printf +#define INFO(...) printf(__VA_ARGS__) +#define ERROR(...) printf(__VA_ARGS__) +#define DEBUG(...) #define JLINK_WRITE_ENDPOINT 0x02 #define JLINK_READ_ENDPOINT 0x81 @@ -244,7 +244,7 @@ static int jlink_tap_execute( cable_t *cable ) else { ERROR( - "jlink_tap_execute, wrong result %d, expected %d", + "jlink_tap_execute, wrong result %d, expected %d\n", result, byte_length); @@ -394,7 +394,6 @@ jlink_init( cable_t *cable ) jlink_reset( cable, 0, 0); jlink_tap_init(); - PARAM_TRST(cable) = 1; return 0;