From 563fee8ce3142287f34ce384b257a821be461ce4 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 14 Mar 2018 00:49:35 -0500 Subject: [PATCH] Add missing trace message for NodeBuffer::malloc failure case (synced from b16d7818261f7dd6dade1faf621431ff1aa82617) --- Makefile | 4 ---- src/ox/fs/filestore/nodebuffer.hpp | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 3c2b781fb..672185169 100644 --- a/Makefile +++ b/Makefile @@ -25,10 +25,6 @@ purge: ${ENV_RUN} rm -rf $(shell find build -mindepth 1 -maxdepth 1 -type d) test: ${ENV_RUN} ${MAKE} -j -C build ARGS="test" HOST_ENV=${HOST_ENV} -run: make - ./build/current/src/wombat/wombat -debug -gdb: make - gdb ./build/current/src/wombat/wombat devenv: docker pull ${DEVENV_IMAGE} diff --git a/src/ox/fs/filestore/nodebuffer.hpp b/src/ox/fs/filestore/nodebuffer.hpp index 81b89fd79..7045da3e3 100644 --- a/src/ox/fs/filestore/nodebuffer.hpp +++ b/src/ox/fs/filestore/nodebuffer.hpp @@ -168,9 +168,12 @@ typename NodeBuffer::ItemPtr NodeBuffer::malloc(size return nullptr; } m_header.bytesUsed += out.size(); + } else { + oxTrace("ox::fs::NodeBuffer::malloc::fail") << "Unknown"; } return out; } + oxTrace("ox::fs::NodeBuffer::malloc::fail") << "Insufficient space:" << fullSize << "needed," << available() << "available"; return nullptr; }