From b00aac6ab613873f5a0e09761b60597d77f77911 Mon Sep 17 00:00:00 2001 From: Martin Zeithaml Date: Wed, 25 Sep 2024 10:34:19 +0200 Subject: [PATCH 1/2] 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); From 58d93f355d7c435f3c3ea55cf22f7c053781628b Mon Sep 17 00:00:00 2001 From: Martin Zeithaml Date: Wed, 25 Sep 2024 10:39:17 +0200 Subject: [PATCH 2/2] Changelog PR number update Signed-off-by: Martin Zeithaml --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d944e8bc6..b36581ba4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Zowe Common C Changelog ## `3.1.0` -- Bugfix: removed "ByteOutputStream" debug message, which was part of the `zwe` command output (#4??) +- Bugfix: removed "ByteOutputStream" debug message, which was part of the `zwe` command output (#491) ## `3.0.0` - Feature: added javascript `zos.getStatvfs(path)` function to obtain file system information (#482).