equal
deleted
inserted
replaced
798 pdo->dir == EC_DIR_OUTPUT ? "RxPdo" : "TxPdo", |
798 pdo->dir == EC_DIR_OUTPUT ? "RxPdo" : "TxPdo", |
799 pdo->index, pdo->name ? pdo->name : "???"); |
799 pdo->index, pdo->name ? pdo->name : "???"); |
800 |
800 |
801 list_for_each_entry(pdo_entry, &pdo->entries, list) { |
801 list_for_each_entry(pdo_entry, &pdo->entries, list) { |
802 buf += sprintf(buf, |
802 buf += sprintf(buf, |
803 " 0x%04X:%X \"%s\", %u bit\n", |
803 " 0x%04X:%02X, %u bit, \"%s\"\n", |
804 pdo_entry->index, pdo_entry->subindex, |
804 pdo_entry->index, pdo_entry->subindex, |
805 pdo_entry->name ? pdo_entry->name : "???", |
805 pdo_entry->bit_length, |
806 pdo_entry->bit_length); |
806 pdo_entry->name ? pdo_entry->name : "???"); |
807 } |
807 } |
808 } |
808 } |
809 } |
809 } |
810 buf += sprintf(buf, "\n"); |
810 buf += sprintf(buf, "\n"); |
811 } |
811 } |
823 pdo->sync_index); |
823 pdo->sync_index); |
824 else |
824 else |
825 buf += sprintf(buf, ", no default assignment.\n"); |
825 buf += sprintf(buf, ", no default assignment.\n"); |
826 |
826 |
827 list_for_each_entry(pdo_entry, &pdo->entries, list) { |
827 list_for_each_entry(pdo_entry, &pdo->entries, list) { |
828 buf += sprintf(buf, " 0x%04X:%X \"%s\", %u bit\n", |
828 buf += sprintf(buf, " 0x%04X:%02X, %u bit, \"%s\"\n", |
829 pdo_entry->index, pdo_entry->subindex, |
829 pdo_entry->index, pdo_entry->subindex, |
830 pdo_entry->name ? pdo_entry->name : "???", |
830 pdo_entry->bit_length, |
831 pdo_entry->bit_length); |
831 pdo_entry->name ? pdo_entry->name : "???"); |
832 } |
832 } |
833 } |
833 } |
834 buf += sprintf(buf, "\n"); |
834 buf += sprintf(buf, "\n"); |
835 } |
835 } |
836 |
836 |