diff -r 03e31ac14047 -r 7bb931deccd9 master/module.c --- a/master/module.c Tue Oct 17 14:10:29 2006 +0000 +++ b/master/module.c Tue Oct 17 14:15:48 2006 +0000 @@ -233,7 +233,8 @@ */ size_t ec_state_string(uint8_t states, /**< slave states */ - char *buffer /**< target buffer (min. 25 bytes) */ + char *buffer /**< target buffer + (min. EC_STATE_STRING_SIZE bytes) */ ) { off_t off = 0; @@ -262,6 +263,10 @@ if (!first) off += sprintf(buffer + off, ", "); off += sprintf(buffer + off, "OP"); } + if (states & EC_SLAVE_STATE_ACK_ERR) { + if (!first) off += sprintf(buffer + off, ", "); + off += sprintf(buffer + off, "ERR"); + } return off; }