From 5ce25ae3b5d8666d373f7d7e336546ce8508c213 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 11 Nov 2025 20:35:20 +0100 Subject: fixes --- src/bin/src/proc/pc.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/bin') diff --git a/src/bin/src/proc/pc.c b/src/bin/src/proc/pc.c index 746e418..28b2f44 100644 --- a/src/bin/src/proc/pc.c +++ b/src/bin/src/proc/pc.c @@ -187,7 +187,6 @@ static int append_value(struct dynstr *const d, return dynstr_append(d, fmt[v->type], v->value); } -#include static enum nw_state write_value(void *const user, struct nw_next *const next) { struct bin_proc *const p = user; @@ -195,7 +194,7 @@ static enum nw_state write_value(void *const user, struct nw_next *const next) struct dynstr *const d = &db->dstr; struct nw_dbg_value v; - dynstr_init(d); + dynstr_free(d); if (nw_dbg_value(&db->dbg, &v) || dynstr_append(d, ";ok:") @@ -203,7 +202,6 @@ static enum nw_state write_value(void *const user, struct nw_next *const next) || dynstr_append(d, "\n")) return NW_FATAL; - Printf(">> %s", d->str); return reply(user, next, d->str); } @@ -390,7 +388,6 @@ static int cmd_g(struct bin_proc *const p, const char *const s, nw_dbg_global(&d->dbg, index); *next = (const struct nw_next){.fn = write_value, .user = p}; return 0; - return 1; } static int cmd_l(struct bin_proc *const p, const char *const s, @@ -573,8 +570,6 @@ static enum nw_state check_lf(void *const user, struct nw_next *const next) const char b = dbg->b; const size_t max = 128; - Printf("%c", b); - if (b == ';') { dynstr_free(d); @@ -623,8 +618,6 @@ static enum nw_state check_start(void *const user, struct nw_next *const next) struct bin_proc *const p = user; struct bin_dbg *const d = &p->dbg; - Printf("<< %c", d->b); - if (d->b == ';') { if (read_string(p, next)) @@ -632,8 +625,6 @@ static enum nw_state check_start(void *const user, struct nw_next *const next) } else if (read_byte(p)) return NW_FATAL; - else - Printf("(%#hhx)\n", d->b); return NW_AGAIN; } -- cgit v1.2.3