Fixed debug build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20259 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
617ed3e4a9
commit
b15ce38615
@ -1,5 +1,7 @@
|
|||||||
// kernel_interface.cpp
|
// kernel_interface.cpp
|
||||||
|
|
||||||
|
#include <dirent.h>
|
||||||
|
|
||||||
#include <KernelExport.h>
|
#include <KernelExport.h>
|
||||||
#include <fs_interface.h>
|
#include <fs_interface.h>
|
||||||
|
|
||||||
@ -440,7 +442,7 @@ userlandfs_read(fs_volume fs, fs_vnode node, fs_cookie cookie, off_t pos,
|
|||||||
void *buffer, size_t *length)
|
void *buffer, size_t *length)
|
||||||
{
|
{
|
||||||
Volume* volume = (Volume*)fs;
|
Volume* volume = (Volume*)fs;
|
||||||
PRINT(("userlandfs_read(%p, %p, %p, %Ld, %p, %lu)\n", nf, node, cookie, pos,
|
PRINT(("userlandfs_read(%p, %p, %p, %Ld, %p, %lu)\n", fs, node, cookie, pos,
|
||||||
buffer, *length));
|
buffer, *length));
|
||||||
status_t error = volume->Read(node, cookie, pos, buffer, *length,
|
status_t error = volume->Read(node, cookie, pos, buffer, *length,
|
||||||
length);
|
length);
|
||||||
@ -535,7 +537,7 @@ userlandfs_read_dir(fs_volume fs, fs_vnode node, fs_cookie cookie,
|
|||||||
PRINT(("userlandfs_read_dir() done: (%lx, %lu)\n", error, *count));
|
PRINT(("userlandfs_read_dir() done: (%lx, %lu)\n", error, *count));
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
dirent* entry = buffer;
|
dirent* entry = buffer;
|
||||||
for (int32 i = 0; i < *count; i++) {
|
for (uint32 i = 0; i < *count; i++) {
|
||||||
// R5's kernel vsprintf() doesn't seem to know `%.<number>s', so
|
// R5's kernel vsprintf() doesn't seem to know `%.<number>s', so
|
||||||
// we need to work around.
|
// we need to work around.
|
||||||
char name[B_FILE_NAME_LENGTH];
|
char name[B_FILE_NAME_LENGTH];
|
||||||
@ -835,7 +837,7 @@ static status_t
|
|||||||
userlandfs_read_index_stat(fs_volume fs, const char *name, struct stat *st)
|
userlandfs_read_index_stat(fs_volume fs, const char *name, struct stat *st)
|
||||||
{
|
{
|
||||||
Volume* volume = (Volume*)fs;
|
Volume* volume = (Volume*)fs;
|
||||||
PRINT(("userlandfs_read_index_stat(%p, `%s', %p)\n", s, name, st));
|
PRINT(("userlandfs_read_index_stat(%p, `%s', %p)\n", fs, name, st));
|
||||||
status_t error = volume->ReadIndexStat(name, st);
|
status_t error = volume->ReadIndexStat(name, st);
|
||||||
PRINT(("userlandfs_read_index_stat() done: (%lx)\n", error));
|
PRINT(("userlandfs_read_index_stat() done: (%lx)\n", error));
|
||||||
return error;
|
return error;
|
||||||
|
Loading…
Reference in New Issue
Block a user