Remove debug output from fgets_unlocked(3)

This commit is contained in:
Mark 2020-07-20 19:37:11 +03:00
parent 65410b63f8
commit 7e3c2f095a

View File

@ -1,4 +1,3 @@
#include <sys/debug.h>
#include <stdio.h>
char *fgets_unlocked(char *buf, int len, FILE *fp) {
@ -24,11 +23,7 @@ char *fgets_unlocked(char *buf, int len, FILE *fp) {
}
if (off) {
ygg_debug_trace("fgets -> %d\n", off);
buf[off] = 0;
for (size_t i = 0; i < off; ++i) {
ygg_debug_trace("buf[%d] = 0x%x\n", i, buf[i]);
}
return buf;
} else {
return NULL;