mescc: Support binutils 2.25: fseek: Add debug printing.

* lib/libc+tcc.c (fseek): Add debug printing.
This commit is contained in:
Jan Nieuwenhuizen 2018-06-17 14:17:39 +02:00
parent 2062826435
commit 22a22c1de8
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -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;