Check.err: def of bend-osdev-acpi@0.1.2.0 Import: import bend-osdev-acpi@0.1.2.0/check.bend as Check Lines 29-62 of bend-osdev-acpi@0.1.2.0/check.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-acpi@0.1.2.0/check.bend&start_line=29&end_line=62 import Base import bend-osdev-word64@0.1.1.1/word64.bend as W import bend-osdev-bytes@0.1.1.1/bytes.bend as B import bend-osdev-acpi@0.1.2.0/error.bend as E def err(e: E.AcpiError) -> String: match e: case E.AcpiTooShort{n, g}: "too short " ++ Nat.show(n) ++ " " ++ Nat.show(g) case E.AcpiBadSignature{s}: "bad signature " ++ B.Octets.to_string(s) case E.AcpiBadLength{l}: "bad length " ++ U32.show(l) case E.AcpiBadChecksum{s}: "bad checksum " ++ U32.show(s) case E.AcpiRsdpBadChecksum{s}: "bad RSDP checksum " ++ U32.show(s) case E.AcpiNotMapped{a}: "not mapped " ++ W.W64.show_hex(a) case E.AcpiAmlUndefined{p}: "undefined " ++ p case E.AcpiAmlStepLimit{}: "step limit" case E.AcpiAmlBadOpcode{c}: "bad opcode " ++ U32.show(c) case E.AcpiAmlBadOperand{c}: "bad operand " ++ U32.show(c) case E.AcpiAmlBadType{s}: "bad type " ++ s case E.AcpiAmlDuplicate{p}: "duplicate " ++ p case E.AcpiAmlUnsupported{s}: "unsupported " ++ s case E.AcpiAmlTruncated{}: "truncated" case E.AcpiAmlRange{}: "range" case _: "error" Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.show https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.show https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/error.bend&name=AcpiError https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=Octets.to_string https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.1/word64.bend&name=W64.show_hex