Limit the size of write() logs

This commit is contained in:
Theodore Dubois 2018-11-14 18:15:04 -08:00
parent e541847df7
commit 6e741f23e4

View File

@ -189,7 +189,7 @@ dword_t sys_write(fd_t fd_no, addr_t buf_addr, dword_t size) {
if (user_read(buf_addr, buf, size))
return _EFAULT;
buf[size] = '\0';
STRACE("write(%d, \"%s\", %d)", fd_no, buf, size);
STRACE("write(%d, \"%.100s\", %d)", fd_no, buf, size);
struct fd *fd = f_get(fd_no);
if (fd == NULL)
return _EBADF;