| 153 | if (ticks) fprintf(stderr, "ds4: distributed route ready\n"); |
| 154 | return 0; |
| 155 | } |
| 156 | if (ready < 0) { |
| 157 | fprintf(stderr, |
| 158 | "ds4: distributed route readiness failed: %s\n", |
| 159 | err[0] ? err : "unknown error"); |
| 160 | return 1; |
| 161 | } |
| 162 | |
| 163 | const char *why = err[0] ? err : "route incomplete"; |
| 164 | if (strcmp(last, why) != 0 || (ticks % 20u) == 0) { |
| 165 | fprintf(stderr, "ds4: waiting for distributed route: %s\n", why); |
| 166 | snprintf(last, sizeof(last), "%s", why); |