Removed redundant '=>' when logging binary data in parser and generator.
This commit is contained in:
@@ -311,14 +311,14 @@ static void generate_u_int_type(private_generator_t *this,
|
|||||||
case CONFIGURATION_ATTRIBUTE_LENGTH:
|
case CONFIGURATION_ATTRIBUTE_LENGTH:
|
||||||
{
|
{
|
||||||
u_int16_t val = htons(*((u_int16_t*)(this->data_struct + offset)));
|
u_int16_t val = htons(*((u_int16_t*)(this->data_struct + offset)));
|
||||||
DBG3(DBG_ENC, " => %b", &val, sizeof(u_int16_t));
|
DBG3(DBG_ENC, " %b", &val, sizeof(u_int16_t));
|
||||||
write_bytes_to_buffer(this, &val, sizeof(u_int16_t));
|
write_bytes_to_buffer(this, &val, sizeof(u_int16_t));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case U_INT_32:
|
case U_INT_32:
|
||||||
{
|
{
|
||||||
u_int32_t val = htonl(*((u_int32_t*)(this->data_struct + offset)));
|
u_int32_t val = htonl(*((u_int32_t*)(this->data_struct + offset)));
|
||||||
DBG3(DBG_ENC, " => %b", &val, sizeof(u_int32_t));
|
DBG3(DBG_ENC, " %b", &val, sizeof(u_int32_t));
|
||||||
write_bytes_to_buffer(this, &val, sizeof(u_int32_t));
|
write_bytes_to_buffer(this, &val, sizeof(u_int32_t));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -327,7 +327,7 @@ static void generate_u_int_type(private_generator_t *this,
|
|||||||
/* 64 bit are written as-is, no host order conversion */
|
/* 64 bit are written as-is, no host order conversion */
|
||||||
write_bytes_to_buffer(this, this->data_struct + offset,
|
write_bytes_to_buffer(this, this->data_struct + offset,
|
||||||
sizeof(u_int64_t));
|
sizeof(u_int64_t));
|
||||||
DBG3(DBG_ENC, " => %b", this->data_struct + offset,
|
DBG3(DBG_ENC, " %b", this->data_struct + offset,
|
||||||
sizeof(u_int64_t));
|
sizeof(u_int64_t));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -385,7 +385,7 @@ static void generate_from_chunk(private_generator_t *this, u_int32_t offset)
|
|||||||
}
|
}
|
||||||
|
|
||||||
value = (chunk_t *)(this->data_struct + offset);
|
value = (chunk_t *)(this->data_struct + offset);
|
||||||
DBG3(DBG_ENC, " => %B", value);
|
DBG3(DBG_ENC, " %B", value);
|
||||||
|
|
||||||
write_bytes_to_buffer(this, value->ptr, value->len);
|
write_bytes_to_buffer(this, value->ptr, value->len);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -254,7 +254,7 @@ static bool parse_bytes(private_parser_t *this, int rule_number,
|
|||||||
if (output_pos)
|
if (output_pos)
|
||||||
{
|
{
|
||||||
memcpy(output_pos, this->byte_pos, bytes);
|
memcpy(output_pos, this->byte_pos, bytes);
|
||||||
DBG3(DBG_ENC, " => %b", output_pos, bytes);
|
DBG3(DBG_ENC, " %b", output_pos, bytes);
|
||||||
}
|
}
|
||||||
this->byte_pos += bytes;
|
this->byte_pos += bytes;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@@ -352,7 +352,7 @@ static bool parse_chunk(private_parser_t *this, int rule_number,
|
|||||||
{
|
{
|
||||||
*output_pos = chunk_alloc(length);
|
*output_pos = chunk_alloc(length);
|
||||||
memcpy(output_pos->ptr, this->byte_pos, length);
|
memcpy(output_pos->ptr, this->byte_pos, length);
|
||||||
DBG3(DBG_ENC, " => %b", output_pos->ptr, length);
|
DBG3(DBG_ENC, " %b", output_pos->ptr, length);
|
||||||
}
|
}
|
||||||
this->byte_pos += length;
|
this->byte_pos += length;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user