master/module.c
changeset 403 7bb931deccd9
parent 383 30ae9db75fea
child 430 74754f45d5fa
--- 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;
 }