script/ec_list.pl
changeset 315 119f967aead8
parent 264 76cba93ba122
--- a/script/ec_list.pl	Tue Jul 25 10:04:51 2006 +0000
+++ b/script/ec_list.pl	Tue Jul 25 10:05:04 2006 +0000
@@ -84,8 +84,8 @@
 	$slave = {};
 	$slave->{'ring_position'} =
 	    &read_integer("$slave_dir/ring_position");
-	$slave->{'coupler_address'} =
-	    &read_string("$slave_dir/coupler_address");
+	$slave->{'advanced_position'} =
+	    &read_string("$slave_dir/advanced_position");
 	unless ($show_sii_naming) {
 	    $slave->{'vendor_name'} =
 		&read_string("$slave_dir/vendor_name");
@@ -95,8 +95,8 @@
 		&read_string("$slave_dir/product_desc");
 	}
 	else {
-	    $slave->{'sii_name'} =
-		&read_string("$slave_dir/sii_name");
+	    $slave->{'name'} =
+		&read_string("$slave_dir/name");
 	}
 	$slave->{'type'} =
 	    &read_string("$slave_dir/type");
@@ -114,13 +114,13 @@
 	}
 
 	$abs = sprintf "%i", $slave->{'ring_position'};
-	printf(" %3s %8s   ", $abs, $slave->{'coupler_address'});
+	printf(" %3s %8s   ", $abs, $slave->{'advanced_position'});
 	unless ($show_sii_naming) {
 	    printf("%-12s %-10s %s\n", $slave->{'vendor_name'},
 		   $slave->{'product_name'}, $slave->{'product_desc'});
 	}
 	else {
-	    printf("%s\n", $slave->{'sii_name'});
+	    printf("%s\n", $slave->{'name'});
 	}
     }
 }
@@ -183,7 +183,7 @@
 {
     print "Usage: ec_list [OPTIONS]\n";
     print "        -m <IDX>    Query master <IDX>.\n";
-    print "        -s          Show SII naming instead of";
+    print "        -s          Show EEPROM name instead of";
     print " vendor/product/description.\n";
     print "        -h          Show this help.\n";
     exit 0;