[med-svn] [libzstd] 04/07: make sure fprintf() gets proper parameters

Sascha Steinbiss satta at debian.org
Fri Jan 13 14:50:00 UTC 2017


This is an automated email from the git hooks/post-receive script.

satta pushed a commit to branch master
in repository libzstd.

commit 1d9d2425b171e6411e4dac64d433b31a716858f4
Author: Sascha Steinbiss <satta at debian.org>
Date:   Fri Jan 13 13:38:52 2017 +0000

    make sure fprintf() gets proper parameters
---
 debian/patches/0007-Fix-use-of-fprintf.patch | 44 ++++++++++++++++++++++++++++
 debian/patches/series                        |  1 +
 2 files changed, 45 insertions(+)

diff --git a/debian/patches/0007-Fix-use-of-fprintf.patch b/debian/patches/0007-Fix-use-of-fprintf.patch
new file mode 100644
index 0000000..95a7576
--- /dev/null
+++ b/debian/patches/0007-Fix-use-of-fprintf.patch
@@ -0,0 +1,44 @@
+Description: Fix use of fprintf
+Author: Sascha Steinbiss <satta at debian.org>
+--- a/contrib/pzstd/Pzstd.h
++++ b/contrib/pzstd/Pzstd.h
+@@ -41,7 +41,7 @@
+       auto parameters = options.determineParameters();
+       cStreamPool.reset(new ResourcePool<ZSTD_CStream>{
+           [this, parameters]() -> ZSTD_CStream* {
+-            this->log(VERBOSE, "Creating new ZSTD_CStream\n");
++            this->log(VERBOSE, "%s\n", "Creating new ZSTD_CStream");
+             auto zcs = ZSTD_createCStream();
+             if (zcs) {
+               auto err = ZSTD_initCStream_advanced(
+@@ -59,7 +59,7 @@
+     } else {
+       dStreamPool.reset(new ResourcePool<ZSTD_DStream>{
+           [this]() -> ZSTD_DStream* {
+-            this->log(VERBOSE, "Creating new ZSTD_DStream\n");
++            this->log(VERBOSE, "%s\n", "Creating new ZSTD_DStream");
+             auto zds = ZSTD_createDStream();
+             if (zds) {
+               auto err = ZSTD_initDStream(zds);
+--- a/contrib/pzstd/Pzstd.cpp
++++ b/contrib/pzstd/Pzstd.cpp
+@@ -410,7 +410,7 @@
+     });
+     // Pass the output queue to the writer thread.
+     chunks.push(std::move(out));
+-    state.log(VERBOSE, "Starting a new frame\n");
++    state.log(VERBOSE, "%s\n", "Starting a new frame");
+     // Fill the input queue for the compression job we just started
+     status = readData(*in, ZSTD_CStreamInSize(), step, fd, &bytesRead);
+   }
+@@ -547,8 +547,8 @@
+     if (frameSize == 0) {
+       // We hit a non SkippableFrame ==> not compressed by pzstd or corrupted
+       // Pass the rest of the source to this decompression task
+-      state.log(VERBOSE,
+-          "Input not in pzstd format, falling back to serial decompression\n");
++      state.log(VERBOSE, "%s\n",
++          "Input not in pzstd format, falling back to serial decompression");
+       while (status == FileStatus::Continue && !state.errorHolder.hasError()) {
+         status = readData(*in, chunkSize, chunkSize, fd, &totalBytesRead);
+       }
diff --git a/debian/patches/series b/debian/patches/series
index ee846a1..4d49bc2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
 0004-Add-help2man-d-pzstd-man-file.patch
 0005-Ensure-CPPFLAGS-makes-it-to-the-compiler.patch
 0006-Use-bash-for-test-script-portablitity.patch
+0007-Fix-use-of-fprintf.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/libzstd.git



More information about the debian-med-commit mailing list