From dcff87215b283fd6de300026724972075085bd8e Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Boric Date: Tue, 13 Apr 2021 19:55:49 +0200 Subject: [PATCH] Kernel: Fix RAM OK test condition for NE2000NetworkAdapter --- Kernel/Net/NE2000NetworkAdapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Net/NE2000NetworkAdapter.cpp b/Kernel/Net/NE2000NetworkAdapter.cpp index 430775f61b8..0845da332d1 100644 --- a/Kernel/Net/NE2000NetworkAdapter.cpp +++ b/Kernel/Net/NE2000NetworkAdapter.cpp @@ -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);