diff options
author | asynts <asynts@gmail.com> | 2021-01-15 00:18:55 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-22 22:14:30 +0100 |
commit | 7b0a1a98d9edc5ae91df9138b695fb2bb3ead4b7 (patch) | |
tree | 460a80e34939ad908e27412bd123d733866784a2 /Kernel/Syscalls/read.cpp | |
parent | a348ab55b038386bd2d0acc0c8de1c8927de12fe (diff) | |
download | serenity-7b0a1a98d9edc5ae91df9138b695fb2bb3ead4b7.zip |
Everywhere: Replace a bundle of dbg with dbgln.
These changes are arbitrarily divided into multiple commits to make it
easier to find potentially introduced bugs with git bisect.
Diffstat (limited to 'Kernel/Syscalls/read.cpp')
-rw-r--r-- | Kernel/Syscalls/read.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Kernel/Syscalls/read.cpp b/Kernel/Syscalls/read.cpp index 0e8c820975..4b1b1f6902 100644 --- a/Kernel/Syscalls/read.cpp +++ b/Kernel/Syscalls/read.cpp @@ -24,11 +24,10 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <AK/Debug.h> #include <Kernel/FileSystem/FileDescription.h> #include <Kernel/Process.h> -//#define DEBUG_IO - namespace Kernel { ssize_t Process::sys$read(int fd, Userspace<u8*> buffer, ssize_t size) @@ -38,9 +37,7 @@ ssize_t Process::sys$read(int fd, Userspace<u8*> buffer, ssize_t size) return -EINVAL; if (size == 0) return 0; -#ifdef DEBUG_IO - dbg() << "sys$read(" << fd << ", " << (const void*)buffer.ptr() << ", " << size << ")"; -#endif + dbgln<debug_io>("sys$read({}, {}, {})", fd, buffer.ptr(), size); auto description = file_description(fd); if (!description) return -EBADF; |