core: Mark hexdigit string static

ARM inmates have troubles processing a non-static version, and it also
makes no sense to have this constant on the stack.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
inmates: set BITS_PER_LONG for printk-core

printk-core.c uses BITS_PER_LONG and is included into inmate printk. In
order order to use that code correctly inmates need that define.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
x86: Use BITS_PER_LONG instead of hard-coded value

PERCPU_SIZE_SHIFT relied on sizeof(long) being 64 bit in size, which is always
true in Jailhouse but is also a potential breakage point. Fixed with
BITS_PER_LONG macro now.

Signed-off-by: Valentine Sinitsyn <valentine.sinitsyn@gmail.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
tools: Support restrictive terminals with cell stats

Some terminals may not support use_default_colors or curs_set and throw
an exception at us. Seen with serial consoles. However, the stats
command can still work if they fail, so ignore those errors.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>