Commit e63bd1c3 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

proper printf(...)

parent d618b6d5
...@@ -241,7 +241,7 @@ main(int argc, char **argv) ...@@ -241,7 +241,7 @@ main(int argc, char **argv)
} }
if (verbose || opt_version) if (verbose || opt_version)
printf(version); printf("%s",version);
/* Open a basic socket. */ /* Open a basic socket. */
if ((skfd = socket(AF_INET, SOCK_DGRAM,0)) < 0) { if ((skfd = socket(AF_INET, SOCK_DGRAM,0)) < 0) {
...@@ -589,7 +589,7 @@ int show_basic_mii(long ioaddr, int phy_id) ...@@ -589,7 +589,7 @@ int show_basic_mii(long ioaddr, int phy_id)
bmcr & 0x0100 ? "full":"half"); bmcr & 0x0100 ? "full":"half");
for (i = 0; i < 9; i++) for (i = 0; i < 9; i++)
if (bmcr & (0x0080<<i)) if (bmcr & (0x0080<<i))
printf(bmcr_bits[i]); printf(" %s",bmcr_bits[i]);
new_bmsr = mdio_read(ioaddr, phy_id, 1); new_bmsr = mdio_read(ioaddr, phy_id, 1);
if ((bmsr & 0x0016) == 0x0004) if ((bmsr & 0x0016) == 0x0004)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment