diff --git a/src/tools/fs_shell/fd.cpp b/src/tools/fs_shell/fd.cpp index ab32fa10e1..c0b1075391 100644 --- a/src/tools/fs_shell/fd.cpp +++ b/src/tools/fs_shell/fd.cpp @@ -39,9 +39,9 @@ void dump_fd(int fd, struct file_descriptor *descriptor); void dump_fd(int fd,struct file_descriptor *descriptor) { - dprintf("fd[%d] = %p: type = %ld, ref_count = %ld, ops = %p, u.vnode = %p, u.mount = %p, cookie = %p, open_mode = %lx, pos = %Ld\n", - fd, descriptor, descriptor->type, descriptor->ref_count, descriptor->ops, - descriptor->u.vnode, descriptor->u.mount, descriptor->cookie, descriptor->open_mode, descriptor->pos); + fssh_dprintf("fd[%d] = %p: type = %d, ref_count = %d, ops = %p, u.vnode = %p, u.mount = %p, cookie = %p, open_mode = %x, pos = %Ld\n", + fd, descriptor, (int)descriptor->type, (int)descriptor->ref_count, descriptor->ops, + descriptor->u.vnode, descriptor->u.mount, descriptor->cookie, (int)descriptor->open_mode, descriptor->pos); } #endif