MCPcopy Create free account
hub / github.com/Bareflank/hypervisor / dispatch_esr_dump

Function dispatch_esr_dump

kernel/src/x64/dispatch_esr.hpp:176–190  ·  view source on GitHub ↗

<!-- description --> @brief Print the contents of a register <!-- inputs/outputs --> @param name the name of the register @param val the value of the register

Source from the content-addressed store, hash-verified

174 /// @param val the value of the register
175 ///
176 constexpr void
177 dispatch_esr_dump(bsl::string_view const &name, bsl::safe_umx const &val) noexcept
178 {
179 bsl::print() << bsl::ylw << "| ";
180 bsl::print() << bsl::rst << bsl::fmt{"<16s", name};
181 bsl::print() << bsl::ylw << "| ";
182 if (val.is_zero()) {
183 bsl::print() << bsl::blk << " " << bsl::hex(val) << " ";
184 }
185 else {
186 bsl::print() << bsl::rst << " " << bsl::hex(val) << " ";
187 }
188 bsl::print() << bsl::ylw << "| ";
189 bsl::print() << bsl::rst << bsl::endl;
190 }
191
192 /// <!-- description -->
193 /// @brief Print the contents of a register

Callers 1

return_failureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected