Soft Patch Panel
 help / color / Atom feed
* [spp] [PATCH] spp-ctl: truncate null chars in response message
@ 2019-07-25 11:25 yasufum.o
  0 siblings, 0 replies; only message in thread
From: yasufum.o @ 2019-07-25 11:25 UTC (permalink / raw)
  To: spp, ferruh.yigit, yasufum.o

From: Yasufumi Ogawa <>

Spp-ctl uses response message from SPP process as debug message. This
update is to truncate nouse null in the response.

Signed-off-by: Yasufumi Ogawa <>
 src/spp-ctl/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/spp-ctl/ b/src/spp-ctl/
index 2bc14e6..33bde43 100644
--- a/src/spp-ctl/
+++ b/src/spp-ctl/
@@ -110,7 +110,7 @@ def exec_command(func):
             if data is None:
                 raise RuntimeError("%s(%d): %s: no-data returned" %
                                    (self.type,, command))
-            LOG.debug("reply: %s", data)
+            LOG.debug("reply: %s", data.replace('\0', ''))
             return self._decode_reply(data)
     return wrapper

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-25 11:25 [spp] [PATCH] spp-ctl: truncate null chars in response message yasufum.o

Soft Patch Panel

Archives are clonable:
	git clone --mirror spp/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 spp spp/ \
	public-inbox-index spp

Newsgroup available over NNTP:

AGPL code for this site: git clone public-inbox