583 off += sprintf(buffer + off, "Product code: 0x%08X\n\n", |
583 off += sprintf(buffer + off, "Product code: 0x%08X\n\n", |
584 slave->sii_product_code); |
584 slave->sii_product_code); |
585 |
585 |
586 off += sprintf(buffer + off, "State: "); |
586 off += sprintf(buffer + off, "State: "); |
587 off += ec_state_string(slave->current_state, buffer + off); |
587 off += ec_state_string(slave->current_state, buffer + off); |
588 off += sprintf(buffer + off, "\nRing position: %i\n", |
588 off += sprintf(buffer + off, "\nFlags: %s, %s\n", |
|
589 slave->online ? "online" : "OFFLINE", |
|
590 slave->error_flag ? "ERROR" : "ok"); |
|
591 off += sprintf(buffer + off, "Ring position: %i\n", |
589 slave->ring_position); |
592 slave->ring_position); |
590 off += sprintf(buffer + off, "Advanced position: %i:%i\n", |
593 off += sprintf(buffer + off, "Advanced position: %i:%i\n", |
591 slave->coupler_index, slave->coupler_subindex); |
594 slave->coupler_index, slave->coupler_subindex); |
592 off += sprintf(buffer + off, "Coupler: %s\n\n", |
595 off += sprintf(buffer + off, "Coupler: %s\n\n", |
593 ec_slave_is_coupler(slave) ? "yes" : "no"); |
596 ec_slave_is_coupler(slave) ? "yes" : "no"); |