* syscalls.cc (lseek64): Fix debug_printf format string.

(truncate64): Ditto.

	* fhandler.cc (fhandler_base::lseek): Force res to -1 on error.
This commit is contained in:
Corinna Vinschen
2004-04-21 08:16:13 +00:00
parent c55888059d
commit b7ede86cfe
3 changed files with 12 additions and 2 deletions

View File

@@ -603,7 +603,7 @@ lseek64 (int fd, _off64_t pos, int dir)
else
res = -1;
}
syscall_printf ("%d = lseek (%d, %D, %d)", res, fd, pos, dir);
syscall_printf ("%D = lseek (%d, %D, %d)", res, fd, pos, dir);
return res;
}
@@ -1709,7 +1709,7 @@ truncate64 (const char *pathname, _off64_t length)
res = ftruncate64 (fd, length);
close (fd);
}
syscall_printf ("%d = truncate (%s, %d)", res, pathname, length);
syscall_printf ("%d = truncate (%s, %D)", res, pathname, length);
return res;
}