sys: fs: constfs: DEBUG fixes

This commit is contained in:
Kaspar Schleiser 2017-10-21 00:46:20 +02:00
parent 38f18137f8
commit ed847a9fdd

View File

@ -241,7 +241,7 @@ static ssize_t constfs_read(vfs_file_t *filp, void *dest, size_t nbytes)
nbytes = fp->size - filp->pos;
}
memcpy(dest, fp->data + filp->pos, nbytes);
DEBUG("constfs_read: read %d bytes\n", nbytes);
DEBUG("constfs_read: read %lu bytes\n", (long unsigned)nbytes);
filp->pos += nbytes;
return nbytes;
}