aboutsummaryrefslogtreecommitdiff
path: root/src/proone-bne.c
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2020-09-20 23:04:43 +0930
committerDavid Timber <mieabby@gmail.com>2020-09-20 23:04:43 +0930
commit1f0323e21067bf9ec2832ff96fa804be7f9ba08f (patch)
tree801a17162392b85ef53b50a5a02dd20201c1cf36 /src/proone-bne.c
parent756ab80daa05a0d2f0d777d364164df94cb552c2 (diff)
bne: add debug messages for the show
Diffstat (limited to 'src/proone-bne.c')
-rw-r--r--src/proone-bne.c7
1 files changed, 5 insertions, 2 deletions
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);
}
}
}