Skip to content
Snippets Groups Projects
Commit f5533dc9 authored by rswindell's avatar rswindell
Browse files

Added more details to the node locking/reading/writing error messages to

identify the cause of the problem that Waldo Kitty is having.
parent c8c921e4
No related branches found
No related tags found
No related merge requests found
......@@ -2257,7 +2257,7 @@ void xsdk_getnodedat(int number, node_t *node, char lockit)
mswait(10);
}
if(count==LOOP_NODEDAB)
bputs("\7Error unlocking and reading node.dab\r\n");
bprintf("\7Error %d %s reading node %u in node.dab\r\n", errno, lockit ? "unlocking and " : "", number+1);
}
/****************************************************************************/
......@@ -2273,8 +2273,9 @@ void xsdk_putnodedat(int number, node_t node)
lseek(nodefile,(long)number*sizeof(node_t),SEEK_SET);
if(write(nodefile,&node,sizeof(node_t))!=sizeof(node_t)) {
unlock(nodefile,(long)number*sizeof(node_t),sizeof(node_t));
bprintf("\7Error writing node.dab for node %u\r\n",number+1);
return; }
bprintf("\7Error %d writing node.dab for node %u\r\n", errno, number+1);
return;
}
unlock(nodefile,(long)number*sizeof(node_t),sizeof(node_t));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment