From 424b032146eb484a1b3e7ca9918945a21c0fadf8 Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Sat, 17 Jun 2023 01:09:48 -0700 Subject: [PATCH] [zion] Remove old debug messages --- zion/lib/shared_ptr.h | 1 - zion/object/port.cpp | 2 -- zion/syscall/syscall.cpp | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/zion/lib/shared_ptr.h b/zion/lib/shared_ptr.h index 8c26a31..3c7b12a 100644 --- a/zion/lib/shared_ptr.h +++ b/zion/lib/shared_ptr.h @@ -70,7 +70,6 @@ class SharedPtr { return; } if (--(*ref_cnt_) == 0) { - dbgln("Deleting shared ptr: %m", ptr_); delete ptr_; delete ref_cnt_; } diff --git a/zion/object/port.cpp b/zion/object/port.cpp index e649bca..22a0dda 100644 --- a/zion/object/port.cpp +++ b/zion/object/port.cpp @@ -9,7 +9,6 @@ z_err_t Port::Write(const ZMessage& msg) { dbgln("Large message size unimplemented: %x", msg.num_bytes); return Z_ERR_INVALID; } - dbgln("port write"); auto message = MakeShared(); message->type = msg.type, message->num_bytes = msg.num_bytes; @@ -37,7 +36,6 @@ z_err_t Port::Write(const ZMessage& msg) { } z_err_t Port::Read(ZMessage& msg) { - dbgln("port read"); mutex_.Lock(); while (pending_messages_.size() < 1) { blocked_threads_.PushBack(gScheduler->CurrentThread()); diff --git a/zion/syscall/syscall.cpp b/zion/syscall/syscall.cpp index bec3f2b..7a651f7 100644 --- a/zion/syscall/syscall.cpp +++ b/zion/syscall/syscall.cpp @@ -123,7 +123,7 @@ z_err_t AddressSpaceMap(ZAddressSpaceMapReq* req, ZAddressSpaceMapResp* resp) { auto vmmo = vmmo_cap->obj(); RET_IF_NULL(vmas); RET_IF_NULL(vmmo); - dbgln("Ptr %x, %x", vmas.get(), vmmo.get()); + // FIXME: Validation necessary. if (req->vmas_offset != 0) { vmas->MapInMemoryObject(req->vmas_offset, vmmo);