From b00aac6ab613873f5a0e09761b60597d77f77911 Mon Sep 17 00:00:00 2001 From: Martin Zeithaml Date: Wed, 25 Sep 2024 10:34:19 +0200 Subject: [PATCH] Hide 'bos' debug message Signed-off-by: Martin Zeithaml --- CHANGELOG.md | 3 +++ c/yaml2json.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf38581b1..d944e8bc6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Zowe Common C Changelog +## `3.1.0` +- Bugfix: removed "ByteOutputStream" debug message, which was part of the `zwe` command output (#4??) + ## `3.0.0` - Feature: added javascript `zos.getStatvfs(path)` function to obtain file system information (#482). - Add support for LE 64-bit in isgenq.c (#422). diff --git a/c/yaml2json.c b/c/yaml2json.c index 9af3e5239..09331570a 100644 --- a/c/yaml2json.c +++ b/c/yaml2json.c @@ -731,8 +731,10 @@ ByteOutputStream *makeByteOutputStream(int chunkSize){ int bosWrite(ByteOutputStream *bos, char *data, int dataSize){ if (bos->size+dataSize > bos->capacity){ int extendSize = (bos->chunkSize > dataSize) ? bos->chunkSize : dataSize; +#ifdef NDEBUG printf("bos extend currSize=0x%x dataSize=0x%x chunk=0x%x extend=0x%x\n", bos->size,dataSize,bos->chunkSize,extendSize); +#endif int newCapacity = bos->capacity + extendSize; char *newData = safeMalloc(newCapacity,"BOS extend"); memcpy(newData,bos->data,bos->size);