Represent diagnostic messages as arrays
-
system-info: Remove incomplete description of output
The reference is now the man page.
-
system-info: Print diagnostic messages as arrays of lines
A single line with escaped newlines is unnecessarily hard to read.
This repurposes code that we already had for printing a udev uevent pseudo-file in this way.
We retain the ability to parse old s-r-s-i output in which the diagnostic messages were a string: the intended meaning is fairly obvious.
Sample output:
"messages" : [
"ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_intel.so: wrong ELF class: ELFCLASS32",
"ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_lvp.so: wrong ELF class: ELFCLASS32",
"ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_radeon.so: wrong ELF class: ELFCLASS32",
"MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0",
"WARNING: lavapipe is not a conformant vulkan implementation, testing use only."
],
Edited by Simon McVittie