From cc96eb72c4d4420632ed78daf0beccd486e61027 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Sat, 23 May 2026 12:47:16 +0200 Subject: [PATCH] flag --- flag.c | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/flag.c b/flag.c index eed1eab..db41cff 100644 --- a/flag.c +++ b/flag.c @@ -53,16 +53,6 @@ static uint32 flag_get_dword_lh(uint8 *p) ((uint32)p[3] << 24)); } -static void flag_debug_bytes(char *tag, uint8 *p, int len) -{ - int i; - fprintf(stderr, "FLAGDBG %s len=%d", tag, len); - if (len > 32) len = 32; - for (i = 0; i < len; i++) - fprintf(stderr, " %02X", p[i]); - fprintf(stderr, "\n"); -} - static int flag_get_current_drive(void) { REGS regs; @@ -146,11 +136,7 @@ static int flag_ncp87_obtain_attrs(char *name, uint32 *attrs) req.len = (uint16)(p - req.data); repl.len = sizeof(repl.data); - neterrno = Net_Call(0x5700, &req, &repl); - fprintf(stderr, "FLAGDBG obtain name=%s rc=%d req.len=%u repl.len=%u\n", - name, neterrno, req.len, repl.len); - flag_debug_bytes("obtain-repl", repl.data, repl.len); - + neterrno = Net_Call(0xF257, &req, &repl); if (neterrno) return(-1); @@ -161,9 +147,6 @@ static int flag_ncp87_obtain_attrs(char *name, uint32 *attrs) if (attrs) *attrs = flag_get_dword_lh(repl.data); - if (attrs) - fprintf(stderr, "FLAGDBG obtain attrs=%08lX\n", *attrs); - return(0); } @@ -209,11 +192,7 @@ static int flag_ncp87_modify_attrs(char *name, uint32 attrs) req.len = (uint16)(p - req.data); repl.len = sizeof(repl.data); - neterrno = Net_Call(0x5700, &req, &repl); - fprintf(stderr, "FLAGDBG modify name=%s attrs=%08lX rc=%d req.len=%u repl.len=%u\n", - name, attrs, neterrno, req.len, repl.len); - flag_debug_bytes("modify-repl", repl.data, repl.len); - + neterrno = Net_Call(0xF257, &req, &repl); if (neterrno) return(-1);