diff options
author | Kevin Rocard <kevinx.rocard@intel.com> | 2014-10-01 10:41:24 +0200 |
---|---|---|
committer | Kevin Rocard <kevinx.rocard@intel.com> | 2014-10-01 18:31:32 +0200 |
commit | e3a06ba341ee81a7dbb7011ec59cecfafc6fdf79 (patch) | |
tree | 1ec98652dfd7b2e0bff98a8c6555302c8cb27d57 /remote-processor | |
parent | f811b7b53c0c2f0d4320c70230e609619c5087c1 (diff) | |
download | external_parameter-framework-e3a06ba341ee81a7dbb7011ec59cecfafc6fdf79.zip external_parameter-framework-e3a06ba341ee81a7dbb7011ec59cecfafc6fdf79.tar.gz external_parameter-framework-e3a06ba341ee81a7dbb7011ec59cecfafc6fdf79.tar.bz2 |
Remove non ASCII char from log string
Some string printed in log were containing Non-breaking spaces
leading to terminal corruption.
Replace them with normal ASCII spaces.
Signed-off-by: Kevin Rocard <kevinx.rocard@intel.com>
Diffstat (limited to 'remote-processor')
-rw-r--r-- | remote-processor/Message.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/remote-processor/Message.cpp b/remote-processor/Message.cpp index 8591847..715787b 100644 --- a/remote-processor/Message.cpp +++ b/remote-processor/Message.cpp @@ -153,21 +153,21 @@ CMessage::Result CMessage::serialize(CSocket* pSocket, bool bOut, string& strErr if (!pSocket->write(&uiSize, sizeof(uiSize))) { - strError += string("Size write failed: ") + strerror(errno); + strError += string("Size write failed: ") + strerror(errno); return error; } // Msg Id if (!pSocket->write(&_ucMsgId, sizeof(_ucMsgId))) { - strError += string("Msg write failed: ") + strerror(errno); + strError += string("Msg write failed: ") + strerror(errno); return error; } // Data if (!pSocket->write(_pucData, _uiDataSize)) { - strError = string("Data write failed: ") + strerror(errno); + strError = string("Data write failed: ") + strerror(errno); return error; } @@ -176,7 +176,7 @@ CMessage::Result CMessage::serialize(CSocket* pSocket, bool bOut, string& strErr if (!pSocket->write(&ucChecksum, sizeof(ucChecksum))) { - strError = string("Checksum write failed: ") + strerror(errno); + strError = string("Checksum write failed: ") + strerror(errno); return error; } @@ -186,7 +186,7 @@ CMessage::Result CMessage::serialize(CSocket* pSocket, bool bOut, string& strErr if (!pSocket->read(&uiSyncWord, sizeof(uiSyncWord))) { - strError = string("Sync read failed: ") + strerror(errno); + strError = string("Sync read failed: ") + strerror(errno); if (pSocket->hasPeerDisconnected()) { return peerDisconnected; } @@ -205,14 +205,14 @@ CMessage::Result CMessage::serialize(CSocket* pSocket, bool bOut, string& strErr if (!pSocket->read(&uiSize, sizeof(uiSize))) { - strError = string("Size read failed: ") + strerror(errno); + strError = string("Size read failed: ") + strerror(errno); return error; } // Msg Id if (!pSocket->read(&_ucMsgId, sizeof(_ucMsgId))) { - strError = string("Msg id read failed: ") + strerror(errno); + strError = string("Msg id read failed: ") + strerror(errno); return error; } @@ -224,7 +224,7 @@ CMessage::Result CMessage::serialize(CSocket* pSocket, bool bOut, string& strErr // Data receive if (!pSocket->read(_pucData, _uiDataSize)) { - strError = string("Data read failed: ") + strerror(errno); + strError = string("Data read failed: ") + strerror(errno); return error; } @@ -233,7 +233,7 @@ CMessage::Result CMessage::serialize(CSocket* pSocket, bool bOut, string& strErr if (!pSocket->read(&ucChecksum, sizeof(ucChecksum))) { - strError = string("Checksum read failed: ") + strerror(errno); + strError = string("Checksum read failed: ") + strerror(errno); return error; } // Compare |