--pretty multi-line with indentation and some fields printed in more human-readable format
--pretty multi-line with indentation and some fields printed in more human-readable format
</pre>
</pre>
+
+
=== Pretty output ===
+
+
By default CRIT prints JSON text in one line. This can be read by any further JSON-aware tool for parsing. For human eyes it's more convenient to read JSON multi-line with indentation. However, CRIT does a little bit more and prints some fields in even more pretty manner.
+
+
; Addresses and registers
+
: VM addresses and core.img register values are all printed in hex. Since JSON doesn't support this form of numbers, such fields are encoded as strings.
+
+
; Bit-fields
+
: Such things as flags and masks (e.g. sig-block mask) are also better understood when written in hex, so CRIT does this.
+
+
; IP addresses
+
: By default those a printed in decimal, but the "1.2.3.4" for v4 or "::1" for v6 can be seen in the --pretty mode.