flag
This commit is contained in:
25
flag.c
25
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user