crosvm/tests
David Tolnay b4bd00fdad error: Print errors using Display impl
I have been running into Debug-printed error messages too often and
needing to look up in the source code each level of nested errors to
find out from the comment on the error variant what the short name of
the variant means in human terms. Worse, many errors (like the one shown
below) already had error strings written but were being printed from the
calling code in the less helpful Debug representation anyway.

Before:
    [ERROR:src/main.rs:705] The architecture failed to build the vm: NoVarEmpty

After:
    [ERROR:src/main.rs:705] The architecture failed to build the vm: /var/empty doesn't exist, can't jail devices.

TEST=cargo check --all-features
TEST=FEATURES=test emerge-amd64-generic crosvm

Change-Id: I77122c7d6861b2d610de2fff718896918ab21e10
Reviewed-on: https://chromium-review.googlesource.com/1469225
Commit-Ready: David Tolnay <dtolnay@chromium.org>
Tested-by: David Tolnay <dtolnay@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2019-02-20 08:20:02 -08:00
..
mini_plugin_template.c add support for accessing debug registers in the plugin process 2018-02-12 22:42:35 -08:00
plugin.policy crosvm: add getpid and prlimit to seccomp 2018-10-23 02:55:29 -07:00
plugin_adder.c allow non-dirty log memory regions from the plugin process 2018-02-12 22:42:37 -08:00
plugin_dirty_log.c allow non-dirty log memory regions from the plugin process 2018-02-12 22:42:37 -08:00
plugin_extensions.c allow plugin to query for KVM extensions 2018-02-12 22:42:40 -08:00
plugin_ioevent.c allow non-dirty log memory regions from the plugin process 2018-02-12 22:42:37 -08:00
plugin_irqfd.c allow non-dirty log memory regions from the plugin process 2018-02-12 22:42:37 -08:00
plugin_msr_index_list.c plugin: allow retrieving list of supported MSRs 2018-07-31 16:37:06 -07:00
plugin_net_config.c plugin: add crosvm_net_get_config 2018-03-08 00:37:50 -08:00
plugin_supported_cpuid.c allow plugin to query KVM for supported/emulated CPUIDs 2018-02-28 21:30:20 -08:00
plugin_vcpu_pause.c Fix race between un-pausing vcpu and requesting vcpu pause 2018-03-08 00:37:33 -08:00
plugin_vm_state.c plugin: allow retrieving and setting VM clock 2019-01-22 21:05:18 -08:00
plugins.rs error: Print errors using Display impl 2019-02-20 08:20:02 -08:00