compiler warnings: fix compiler warnings in format strings

pull/2414/head
Jason Ish 9 years ago committed by Victor Julien
parent 3f8ee2afd3
commit 2b874abada

@ -170,7 +170,7 @@ static int LogDnsLogger(ThreadVars *tv, void *data, const Packet *p, Flow *f,
{
LogDnsLogThread *aft = (LogDnsLogThread *)data;
DNSTransaction *dns_tx = (DNSTransaction *)tx;
SCLogDebug("pcap_cnt %ju", p->pcap_cnt);
SCLogDebug("pcap_cnt %"PRIu64, p->pcap_cnt);
char timebuf[64];
CreateTimeString(&p->ts, timebuf, sizeof(timebuf));

@ -193,7 +193,7 @@ static TmEcode OutputTxLog(ThreadVars *tv, Packet *p, void *thread_data)
"tc_log_progress %d", logger, logger->LogCondition,
logger->ts_log_progress, logger->tc_log_progress);
if (logger->alproto == alproto) {
SCLogDebug("alproto match, logging tx_id %ju", tx_id);
SCLogDebug("alproto match, logging tx_id %"PRIu64, tx_id);
if (AppLayerParserGetTxLogged(p->proto, alproto, alstate, tx,
logger->id)) {
@ -243,7 +243,7 @@ next:
}
if (!logger_not_logged) {
SCLogDebug("updating log tx_id %ju", tx_id);
SCLogDebug("updating log tx_id %"PRIu64, tx_id);
AppLayerParserSetTransactionLogId(f->alparser);
}
}

@ -300,7 +300,7 @@ TmEcode ReceiveIPFWLoop(ThreadVars *tv, void *data, void *slot)
PacketCopyData(p, pkt, pktlen);
SCLogDebug("Packet info: pkt_len: %" PRIu32 " (pkt %02x, pkt_data %02x)",
GET_PKT_LEN(p), *pkt, GET_PKT_DATA(p));
GET_PKT_LEN(p), *pkt, *(GET_PKT_DATA(p)));
if (TmThreadsSlotProcessPkt(tv, ((TmSlot *) slot)->slot_next, p)
!= TM_ECODE_OK) {

Loading…
Cancel
Save