aboutsummaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-11-11 20:35:20 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2025-11-11 20:55:58 +0100
commit5ce25ae3b5d8666d373f7d7e336546ce8508c213 (patch)
tree4aacb570241c1005590a47ac49adb4b75a8ffd8d /src/bin
parentf7ad4d9216b488f76ed4b3c8e423cd926e134b9d (diff)
downloadwnix-5ce25ae3b5d8666d373f7d7e336546ce8508c213.tar.gz
fixes
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/src/proc/pc.c11
1 files changed, 1 insertions, 10 deletions
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 <drv/ps1/bios.h>
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;
}