summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/waitid.cpp
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2021-01-15 00:18:55 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-22 22:14:30 +0100
commit7b0a1a98d9edc5ae91df9138b695fb2bb3ead4b7 (patch)
tree460a80e34939ad908e27412bd123d733866784a2 /Kernel/Syscalls/waitid.cpp
parenta348ab55b038386bd2d0acc0c8de1c8927de12fe (diff)
downloadserenity-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/waitid.cpp')
-rw-r--r--Kernel/Syscalls/waitid.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/Kernel/Syscalls/waitid.cpp b/Kernel/Syscalls/waitid.cpp
index ea6fb3248a..e3090766be 100644
--- a/Kernel/Syscalls/waitid.cpp
+++ b/Kernel/Syscalls/waitid.cpp
@@ -24,10 +24,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <AK/Debug.h>
#include <Kernel/Process.h>
-//#define PROCESS_DEBUG
-
namespace Kernel {
KResultOr<siginfo_t> Process::do_waitid(idtype_t idtype, int id, int options)
@@ -56,9 +55,7 @@ pid_t Process::sys$waitid(Userspace<const Syscall::SC_waitid_params*> user_param
if (!copy_from_user(&params, user_params))
return -EFAULT;
-#ifdef PROCESS_DEBUG
- dbg() << "sys$waitid(" << params.idtype << ", " << params.id << ", " << params.infop << ", " << params.options << ")";
-#endif
+ dbgln<debug_process>("sys$waitid({}, {}, {}, {})", params.idtype, params.id, params.infop, params.options);
auto siginfo_or_error = do_waitid(static_cast<idtype_t>(params.idtype), params.id, params.options);
if (siginfo_or_error.is_error())