From 62ce9ff288b63ac869a28394925084aac8fbf3b6 Mon Sep 17 00:00:00 2001 From: Steffen Nurpmeso Date: Wed, 2 May 2018 15:11:00 +0200 Subject: [PATCH] c_bind(): in *verbose* mode, print hexadecimal as "\xYZ" not YZ --- tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tty.c b/tty.c index 84d70822..fef82059 100644 --- a/tty.c +++ b/tty.c @@ -4493,7 +4493,7 @@ c_bind(void *v){ cbuf[1] = c.c, cbufp = cbuf; else cbufp = n_empty; - fprintf(fp, "%s%02X%s", + fprintf(fp, "%s\\x%02X%s", bsep, (ui32_t)(ui8_t)c.c, cbufp); bsep = " "; } -- 2.11.4.GIT