pool raw acces printout

This commit is contained in:
Robin Müller 2020-04-30 21:37:02 +02:00
parent 431709a3ec
commit 03333c2af0
2 changed files with 9 additions and 8 deletions

View File

@ -62,7 +62,7 @@ public:
} }
void setEnd() { void setEnd() {
this->next = NULL; this->next = nullptr;
} }
LinkedElement* begin() { LinkedElement* begin() {

View File

@ -34,7 +34,8 @@ ReturnValue_t PoolRawAccessHelper::serialize(uint8_t **buffer, size_t *size,
} }
} }
if(remainingParametersSize != 0) { if(remainingParametersSize != 0) {
sif::debug << "Pool Raw Access: Remaining parameters size not 0 !" << std::endl; sif::debug << "PoolRawAccessHelper: "
"Remaining parameters size not 0 !" << std::endl;
result = RETURN_FAILED; result = RETURN_FAILED;
} }
return result; return result;
@ -56,7 +57,8 @@ ReturnValue_t PoolRawAccessHelper::serializeWithValidityMask(uint8_t ** buffer,
} }
} }
if(remainingParametersSize != 0) { if(remainingParametersSize != 0) {
sif::debug << "Pool Raw Access: Remaining parameters size not 0 !" << std::endl; sif::debug << "PoolRawAccessHelper: Remaining "
"parameters size not 0 !" << std::endl;
result = RETURN_FAILED; result = RETURN_FAILED;
} }
@ -75,7 +77,7 @@ ReturnValue_t PoolRawAccessHelper::serializeCurrentPoolEntryIntoBuffer(
ReturnValue_t result = AutoSerializeAdapter::deSerialize(&currentPoolId, ReturnValue_t result = AutoSerializeAdapter::deSerialize(&currentPoolId,
&poolIdBuffer,remainingParameters, false); &poolIdBuffer,remainingParameters, false);
if(result != RETURN_OK) { if(result != RETURN_OK) {
sif::debug << std::hex << "Pool Raw Access Helper: Error deSeralizing " sif::debug << std::hex << "PoolRawAccessHelper: Error deSeralizing "
"pool IDs" << std::dec << std::endl; "pool IDs" << std::dec << std::endl;
return result; return result;
} }
@ -96,7 +98,7 @@ ReturnValue_t PoolRawAccessHelper::handlePoolEntrySerialization(
while(not poolEntrySerialized) { while(not poolEntrySerialized) {
if(counter > DataSet::DATA_SET_MAX_SIZE) { if(counter > DataSet::DATA_SET_MAX_SIZE) {
sif::error << "Pool Raw Access Helper: Config error, " sif::error << "PoolRawAccessHelper: Config error, "
"max. number of possible data set variables exceeded" "max. number of possible data set variables exceeded"
<< std::endl; << std::endl;
return result; return result;
@ -110,9 +112,8 @@ ReturnValue_t PoolRawAccessHelper::handlePoolEntrySerialization(
result = currentDataSet.read(); result = currentDataSet.read();
if (result != RETURN_OK) { if (result != RETURN_OK) {
sif::debug << std::hex << "Pool Raw Access Helper: Error reading raw " sif::debug << std::hex << "PoolRawAccessHelper: Error reading raw "
"dataset with returncode 0x" "dataset with returncode 0x" << result << std::dec << std::endl;
<< result << std::dec << std::endl;
return result; return result;
} }