Added print_port() helper to print physical port number.

This commit is contained in:
René van Dorst
2026-08-25 07:54:15 +02:00
parent 3776f12f5c
commit 3c183f73f8
5 changed files with 28 additions and 32 deletions
+2 -2
View File
@@ -262,7 +262,7 @@ void phy_set_speed(void) __banked
{
uint16_t v;
print_string("Setting port "); write_char(machine.log_to_phys_port[phy_settings.port] + '0');
print_string("Setting port "); print_port(phy_settings.port);
if (machine.n_10g && phy_settings.port == 3)
phy_settings.is10g_port = 1;
if (machine.n_10g == 2 && phy_settings.port == 8)
@@ -381,7 +381,7 @@ void phy_set_duplex(void) __banked
{
uint16_t v;
print_string("Setting port "); write_char(machine.log_to_phys_port[phy_settings.port] + '0');
print_string("Setting port "); print_port(phy_settings.port);
if (phy_settings.duplex)
print_string(" to full duplex");
else