Browse Source

lsirq: Restore enumeration of interrupt line

This was broken by changes to `JsonObject::get_deprecated_string`.
Jelle Raaijmakers 2 years ago
parent
commit
e6935cbaaf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Utilities/lsirq.cpp

+ 1 - 1
Userland/Utilities/lsirq.cpp

@@ -35,7 +35,7 @@ ErrorOr<int> 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();