From 1f0323e21067bf9ec2832ff96fa804be7f9ba08f Mon Sep 17 00:00:00 2001 From: David Timber Date: Sun, 20 Sep 2020 23:04:43 +0930 Subject: bne: add debug messages for the show --- src/proone-bne.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/proone-bne.c') diff --git a/src/proone-bne.c b/src/proone-bne.c index 2770280..4876038 100644 --- a/src/proone-bne.c +++ b/src/proone-bne.c @@ -92,6 +92,8 @@ static void report_result (const prne_bne_result_t *r) { r->err, vec_str); if (r->vec >= 0) { + const char *arch_str = prne_arch_tostr(r->arch); + if (r->cred.id != NULL) { printf( "\tcred:\n" @@ -100,8 +102,9 @@ static void report_result (const prne_bne_result_t *r) { r->cred.id, r->cred.pw); } - if (r->prc >= 0) { - printf("\tprc: %d\n", r->prc); + printf("\tprc: %d\n", r->prc); + if (arch_str != NULL) { + printf("\tarch: %s\n", arch_str); } } } -- cgit