Kernel: Fix RAM OK test condition for NE2000NetworkAdapter

This commit is contained in:
Jean-Baptiste Boric 2021-04-13 19:55:49 +02:00 committed by Andreas Kling
parent a73bd0fff8
commit dcff87215b
Notes: sideshowbarker 2024-07-18 20:25:04 +09:00

View file

@ -195,7 +195,7 @@ UNMAP_AFTER_INIT NE2000NetworkAdapter::NE2000NetworkAdapter(PCI::Address address
dmesgln("NE2000: Interrupt line: {}", m_interrupt_line);
int ram_errors = ram_test();
dmesgln("NE2000: RAM test {}, got {} byte errors", (ram_errors > 0 ? "OK" : "KO"), ram_errors);
dmesgln("NE2000: RAM test {}, got {} byte errors", (ram_errors == 0 ? "OK" : "KO"), ram_errors);
reset();
set_mac_address(m_mac_address);