Mercurial > hg > freeDiameter
comparison libfdcore/p_psm.c @ 1330:e7726fae1e7f
Log an error if going from open to suspect or closed
author | Thomas Klausner <tk@giga.or.at> |
---|---|
date | Mon, 27 Nov 2017 15:43:50 +0100 |
parents | afe0ecdb0692 |
children | 9f52a841b0c7 |
comparison
equal
deleted
inserted
replaced
1329:175f2eb883a0 | 1330:e7726fae1e7f |
---|---|
279 | 279 |
280 old = fd_peer_getstate(peer); | 280 old = fd_peer_getstate(peer); |
281 if (old == new_state) | 281 if (old == new_state) |
282 return 0; | 282 return 0; |
283 | 283 |
284 LOG(((old == STATE_OPEN) || (new_state == STATE_OPEN)) ? FD_LOG_NOTICE : FD_LOG_DEBUG, "'%s'\t-> '%s'\t'%s'", | 284 LOG(((old == STATE_OPEN) || (new_state == STATE_OPEN)) ? ((new_state == STATE_SUSPECT || new_state == STATE_CLOSED) ? FD_LOG_ERROR : FD_LOG_NOTICE ): FD_LOG_DEBUG, "'%s'\t-> '%s'\t'%s'", |
285 STATE_STR(old), | 285 STATE_STR(old), |
286 STATE_STR(new_state), | 286 STATE_STR(new_state), |
287 peer->p_hdr.info.pi_diamid); | 287 peer->p_hdr.info.pi_diamid); |
288 | 288 |
289 | 289 |