--- a/master/pdo_list.c Tue Feb 23 15:13:56 2010 +0100
+++ b/master/pdo_list.c Tue Feb 23 15:49:12 2010 +0100
@@ -326,11 +326,15 @@
{
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(" ");
- }
-}
-
-/*****************************************************************************/
+ if (list_empty(&pl->list)) {
+ printk("(none)");
+ } else {
+ list_for_each_entry(pdo, &pl->list, list) {
+ printk("0x%04X", pdo->index);
+ if (pdo->list.next != &pl->list)
+ printk(" ");
+ }
+ }
+}
+
+/*****************************************************************************/