platform: log something nice about RESULT_FAILED_RESYNC

This is not nice:

  <warn>  [1670321010.3467] platform-linux: do-change-link[2]: failure changing link: internal failure 3

Let's explain what "internal failure 3" is.

(cherry picked from commit 1e6fd1288d)
This commit is contained in:
Lubomir Rintel 2023-01-16 08:15:16 +01:00
parent c83740aaa7
commit a2345c318d

View file

@ -711,6 +711,9 @@ wait_for_nl_response_to_string(WaitForNlResponseResult seq_result,
case WAIT_FOR_NL_RESPONSE_RESULT_RESPONSE_UNKNOWN:
nm_strbuf_append_str(&buf, &buf_size, "failure");
break;
case WAIT_FOR_NL_RESPONSE_RESULT_FAILED_RESYNC:
nm_strbuf_append_str(&buf, &buf_size, "failed-resync");
break;
default:
if (seq_result < 0) {
nm_strbuf_append(&buf,