diff --git a/lib/libc+tcc.c b/lib/libc+tcc.c index 5832f7a9..d1133d40 100644 --- a/lib/libc+tcc.c +++ b/lib/libc+tcc.c @@ -277,6 +277,11 @@ int fseek (FILE *stream, long offset, int whence) { int pos = lseek ((int)stream, offset, whence); + if (__mes_debug ()) + { + eputs ("fread fd="); eputs (itoa ((int)stream)); + eputs (" =>"); eputs (itoa (pos)); eputs ("\n"); + } if (pos >= 0) return 0; return -1;