ssm: Add API to silence most state change debug messages

Otherwise tightly looping SSMs (primarily SPI transfers), will flood the
logs in inappropriate ways.
This commit is contained in:
Benjamin Berg
2021-12-02 13:44:57 +01:00
parent 31afd3ba5c
commit 3981c42d3e
3 changed files with 28 additions and 7 deletions

View File

@@ -96,6 +96,8 @@ GError * fpi_ssm_get_error (FpiSsm *machine);
GError * fpi_ssm_dup_error (FpiSsm *machine);
int fpi_ssm_get_cur_state (FpiSsm *machine);
void fpi_ssm_silence_debug (FpiSsm *machine);
/* Callbacks to be used by the driver instead of implementing their own
* logic.
*/