mescc: Support binutils 2.25: fseek: Add debug printing.
* lib/libc+tcc.c (fseek): Add debug printing.
This commit is contained in:
parent
2062826435
commit
22a22c1de8
|
@ -277,6 +277,11 @@ int
|
||||||
fseek (FILE *stream, long offset, int whence)
|
fseek (FILE *stream, long offset, int whence)
|
||||||
{
|
{
|
||||||
int pos = lseek ((int)stream, offset, 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)
|
if (pos >= 0)
|
||||||
return 0;
|
return 0;
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue