2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 13:28:27 +00:00

show: Tune protobus showers for .int(32|64)

Use # for both and don't use fixed field width for 32bit one (as they are
most likely just some values, while the 64bit is some address which is better
to be printed with full width).

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov 2012-08-10 07:36:20 +04:00
parent 6a9e5bbdcc
commit 64e161f307

View File

@ -138,12 +138,12 @@ typedef void (pb_pr_field_t)(void *obj, pb_pr_ctl_t *ctl);
static void pb_msg_int32x(void *obj, pb_pr_ctl_t *ctl)
{
pr_msg("0x%08x", *(int *)obj);
pr_msg("%#x", *(int *)obj);
}
static void pb_msg_int64x(void *obj, pb_pr_ctl_t *ctl)
{
pr_msg("0x%016lx", *(long *)obj);
pr_msg("%#016lx", *(long *)obj);
}
static void pb_msg_string(void *obj, pb_pr_ctl_t *ctl)