Minor output changes in slave info file.
authorFlorian Pose <fp@igh-essen.com>
Fri, 05 Oct 2007 07:42:47 +0000
changeset 764 41a5bdff9d9b
parent 763 5e238783b71a
child 765 5eaf2af36427
Minor output changes in slave info file.
master/slave.c
--- a/master/slave.c	Thu Oct 04 08:38:05 2007 +0000
+++ b/master/slave.c	Fri Oct 05 07:42:47 2007 +0000
@@ -713,7 +713,8 @@
 
     off += sprintf(buffer + off, "Data link status:\n");
     for (i = 0; i < 4; i++) {
-        off += sprintf(buffer + off, "  Port %i (", i);
+        off += sprintf(buffer + off, "  Port %u: Phy %u (",
+                i, slave->sii_physical_layer[i]);
         switch (slave->sii_physical_layer[i]) {
             case 0x00:
                 off += sprintf(buffer + off, "EBUS");
@@ -725,10 +726,9 @@
                 off += sprintf(buffer + off, "100BASE-FX");
                 break;
             default:
-                off += sprintf(buffer + off, "unknown (%i)",
-                               slave->sii_physical_layer[i]);
-        }
-        off += sprintf(buffer + off, ") Link %s, Loop %s, %s\n",
+                off += sprintf(buffer + off, "unknown");
+        }
+        off += sprintf(buffer + off, "), Link %s, Loop %s, %s\n",
                        slave->dl_link[i] ? "up" : "down",
                        slave->dl_loop[i] ? "closed" : "open",
                        slave->dl_signal[i] ? "Signal detected" : "No signal");