*(this->out_position) = high | low;
if (this->debug)
{
- DBG3(DBG_ENC, " => %d", *(this->out_position));
+ DBG3(DBG_ENC, " => %hhu", *(this->out_position) >> 4);
}
/* write position is not changed, just bit position is moved */
this->current_bit = 4;
*(this->out_position) = high | low;
if (this->debug)
{
- DBG3(DBG_ENC, " => %d", *(this->out_position));
+ DBG3(DBG_ENC, " => %hhu", *(this->out_position) & 0x0F);
}
this->out_position++;
this->current_bit = 0;
*this->out_position = *((uint8_t *)(this->data_struct + offset));
if (this->debug)
{
- DBG3(DBG_ENC, " => %d", *(this->out_position));
+ DBG3(DBG_ENC, " => %hhu", *(this->out_position));
}
this->out_position++;
break;
val = htons(val);
if (this->debug)
{
- DBG3(DBG_ENC, " => %d", val);
+ DBG3(DBG_ENC, " => %hu", val);
}
/* write bytes to buffer (set bit is overwritten) */
write_bytes_to_buffer(this, &val, sizeof(uint16_t));
*(this->out_position) = *(this->out_position) | flag;
if (this->debug)
{
- DBG3(DBG_ENC, " => %d", *this->out_position);
+ DBG3(DBG_ENC, " => %hhu", *this->out_position);
}
this->current_bit++;
if (this->current_bit != 0)
{
- DBG1(DBG_ENC, "can not generate a chunk at bitpos %d",
+ DBG1(DBG_ENC, "can not generate a chunk at bitpos %hhu",
this->current_bit);
return ;
}