Skip to content

Commit

Permalink
gdb_packet: Limit spam of "Enabling NoAckMode" under DEBUG_GDB
Browse files Browse the repository at this point in the history
  • Loading branch information
ALTracer committed Nov 27, 2023
1 parent 39cb6d6 commit 868f522
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gdb_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ void gdb_set_noackmode(bool enable)
if (!enable && noackmode)
gdb_if_putchar(GDB_PACKET_ACK, 1U);

DEBUG_GDB("%s NoAckMode\n", enable ? "Enabling" : "Disabling");
/* Log only changes */
if (noackmode != enable)
DEBUG_GDB("%s NoAckMode\n", enable ? "Enabling" : "Disabling");

noackmode = enable;
}

Expand Down

0 comments on commit 868f522

Please sign in to comment.