add some debug information

This commit is contained in:
Marian Ohligs 2011-08-10 21:29:24 +02:00
parent 27b7c6aa6e
commit eebcf3fee1
2 changed files with 7 additions and 2 deletions

View file

@ -42,9 +42,12 @@
static ssize_t netchar_read(fildes_t* file, uint8_t* buffer, size_t size)
{
int ret;
kprintf("\n%p with lenght %i and socket %i", buffer, size, file->offset);
int ret;
#if defined(CONFIG_LWIP) && LWIP_SOCKET
ret = lwip_read(file->offset, buffer, size);
ret = lwip_read((int)file->offset, buffer, size);
if (ret < 0)
ret = -errno;
#else

View file

@ -306,6 +306,8 @@ int syscall_handler(uint32_t sys_nr, ...)
ret = -ENOTSOCK;
break;
}
kprintf("%p with lenght %i and soket %i", name, namelen, per_core(current_task)->fildes_table[fd].offset);
ret = lwip_connect(per_core(current_task)->fildes_table[fd].offset, name, namelen);
if (ret < 0)