remove newlines in debug output

This commit is contained in:
matthias.ringwald@gmail.com 2014-01-12 10:54:16 +00:00
parent c8ab231427
commit 928ab3e6f7
2 changed files with 5 additions and 5 deletions

View File

@ -107,7 +107,7 @@ static void heartbeat_handler(struct timer *ts){
puts(lineBuffer);
int err = rfcomm_send_internal(rfcomm_channel_id, (uint8_t*) lineBuffer, strlen(lineBuffer));
if (err) {
log_error("rfcomm_send_internal -> error %d", err);
log_error("rfcomm_send_internal -> error 0X%02x", err);
}
}

View File

@ -1952,22 +1952,22 @@ int rfcomm_send_internal(uint16_t rfcomm_cid, uint8_t *data, uint16_t len){
rfcomm_channel_t * channel = rfcomm_channel_for_rfcomm_cid(rfcomm_cid);
if (!channel){
log_error("rfcomm_send_internal cid 0x%02x doesn't exist!\n", rfcomm_cid);
log_error("rfcomm_send_internal cid 0x%02x doesn't exist!", rfcomm_cid);
return 0;
}
if (!channel->credits_outgoing){
log_info("rfcomm_send_internal cid 0x%02x, no rfcomm outgoing credits!\n", rfcomm_cid);
log_info("rfcomm_send_internal cid 0x%02x, no rfcomm outgoing credits!", rfcomm_cid);
return RFCOMM_NO_OUTGOING_CREDITS;
}
if (!channel->packets_granted){
log_info("rfcomm_send_internal cid 0x%02x, no rfcomm credits granted!\n", rfcomm_cid);
log_info("rfcomm_send_internal cid 0x%02x, no rfcomm credits granted!", rfcomm_cid);
return RFCOMM_NO_OUTGOING_CREDITS;
}
if ((channel->multiplexer->fcon & 1) == 0){
log_info("rfcomm_send_internal cid 0x%02x, aggregate flow off!\n", rfcomm_cid);
log_info("rfcomm_send_internal cid 0x%02x, aggregate flow off!", rfcomm_cid);
return RFCOMM_AGGREGATE_FLOW_OFF;
}
// log_info("rfcomm_send_internal: len %u... outgoing credits %u, l2cap credit %us, granted %u\n",