diff --git a/kernel/branches/net/drivers/bus/mii.inc b/kernel/branches/net/drivers/bus/mii.inc index 543d923d9f..9e0824b99c 100644 --- a/kernel/branches/net/drivers/bus/mii.inc +++ b/kernel/branches/net/drivers/bus/mii.inc @@ -136,7 +136,7 @@ -if defined mdio_read +if used mii_link_ok align 4 mii_link_ok: @@ -151,11 +151,9 @@ mii_link_ok: mov ecx, MII_BMSR call mdio_read - DEBUGF 1, "eax=0x%x\n", eax + and ax, BMSR_LSTATUS - and eax, BMSR_LSTATUS - - DEBUGF 1, "link status=0x%x\n", eax + DEBUGF 1, "link status=0x%x\n", ax ret diff --git a/kernel/branches/net/drivers/pcnet32.asm b/kernel/branches/net/drivers/pcnet32.asm index 47fff6937e..dd50446e67 100644 --- a/kernel/branches/net/drivers/pcnet32.asm +++ b/kernel/branches/net/drivers/pcnet32.asm @@ -1523,7 +1523,7 @@ check_media: call [device.read_bcr] cmp eax, 0xc0 - DEBUGF 1, "link status=0x%x\n", eax + DEBUGF 1, "link status=0x%x\n", ax ret