From e6935cbaafe5736fa1c196dedecb13a8f8293aba Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Tue, 16 May 2023 23:04:46 +0200 Subject: [PATCH] lsirq: Restore enumeration of interrupt line This was broken by changes to `JsonObject::get_deprecated_string`. --- Userland/Utilities/lsirq.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Utilities/lsirq.cpp b/Userland/Utilities/lsirq.cpp index 3a43ca9240..076234587b 100644 --- a/Userland/Utilities/lsirq.cpp +++ b/Userland/Utilities/lsirq.cpp @@ -35,7 +35,7 @@ ErrorOr serenity_main(Main::Arguments) json.as_array().for_each([cpu_count](JsonValue const& value) { auto& handler = value.as_object(); auto purpose = handler.get_deprecated_string("purpose"sv).value_or({}); - auto interrupt = handler.get_deprecated_string("interrupt_line"sv).value_or({}); + auto interrupt = handler.get_u8("interrupt_line"sv).value(); auto controller = handler.get_deprecated_string("controller"sv).value_or({}); auto call_counts = handler.get_array("per_cpu_call_counts"sv).value();