Now prints hex representation of non-printable keys when logging them by larsewi · Pull Request #80 · larsewi/leech

added 11 commits

January 14, 2025 10:09
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
It returns true if all characters are of character code 32 to 127 (not
included).

Ticket: CFE-4370
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Function to convert a buffer into a printable string. If the buffer
contains non-printable characters, then a string such as `b"<CONTENT>"`
is returned. If the buffer contains only printable characters, then a
string such as `"<CONTENT>"` is returned.

Ticket: CFE-4370
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Ticket: CFE-4370
Changelog: Title
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>