From 2de055ce1bf171aadc46e70c230eb20080f3cb55 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sun, 1 Jul 2012 19:53:53 -0300 Subject: [PATCH] tools/ant-cl/ant-cl.c (send_diag): print the requested pattern (if verbose) --- tools/ant-cl/ant-cl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/ant-cl/ant-cl.c b/tools/ant-cl/ant-cl.c index 9788425..c94a34a 100644 --- a/tools/ant-cl/ant-cl.c +++ b/tools/ant-cl/ant-cl.c @@ -524,8 +524,12 @@ static void send_diag(struct atrf_dsc *dsc, uint16_t pattern, uint16_t *v_bg) hash_init(); hash_merge(image_secret, sizeof(image_secret)); - if (verbose) + if (verbose) { write(2, "diag ", 5); + for (i = 0; i != 16; i++) + write(2, pattern & (1 << i) ? "*" : "-", 1); + write(2, " ", 1); + } memset(payload, 0, PAYLOAD); payload[0] = pattern; payload[1] = pattern >> 8;