Added ec_pdo_list_print().
--- a/master/pdo_list.c Mon Jun 23 10:26:47 2008 +0000
+++ b/master/pdo_list.c Mon Jun 23 10:27:40 2008 +0000
@@ -318,3 +318,20 @@
}
/*****************************************************************************/
+
+/** Outputs the Pdos in the list.
+ */
+void ec_pdo_list_print(
+ const ec_pdo_list_t *pl /**< Pdo list. */
+ )
+{
+ const ec_pdo_t *pdo;
+
+ list_for_each_entry(pdo, &pl->list, list) {
+ printk("0x%04X", pdo->index);
+ if (pdo->list.next != &pl->list)
+ printk(" ");
+ }
+}
+
+/*****************************************************************************/
--- a/master/pdo_list.h Mon Jun 23 10:26:47 2008 +0000
+++ b/master/pdo_list.h Mon Jun 23 10:27:40 2008 +0000
@@ -79,6 +79,8 @@
const ec_pdo_list_t *, unsigned int);
unsigned int ec_pdo_list_count(const ec_pdo_list_t *);
+void ec_pdo_list_print(const ec_pdo_list_t *);
+
/*****************************************************************************/
#endif