More format specifier cleanup

This commit is contained in:
Johanna Amann 2016-08-12 15:54:39 -07:00
parent c464cf78dd
commit a2c8f8a9b6
3 changed files with 4 additions and 4 deletions

View file

@ -126,7 +126,7 @@ bool BinarySerializationFormat::Read(uint32* v, const char* tag)
return false;
*v = ntohl(*v);
DBG_LOG(DBG_SERIAL, "Read uint32 %u [%s]", *v, tag);
DBG_LOG(DBG_SERIAL, "Read uint32 %" PRIu32 " [%s]", *v, tag);
return true;
}
@ -313,7 +313,7 @@ bool BinarySerializationFormat::Write(uint16 v, const char* tag)
bool BinarySerializationFormat::Write(uint32 v, const char* tag)
{
DBG_LOG(DBG_SERIAL, "Write uint32 %u [%s]", v, tag);
DBG_LOG(DBG_SERIAL, "Write uint32 %" PRIu32 " [%s]", v, tag);
v = htonl(v);
return WriteData(&v, sizeof(v));
}

View file

@ -107,7 +107,7 @@ void Manager::DumpDebug()
DBG_LOG(DBG_ANALYZER, " %s (%s)", (*i)->Name().c_str(),
IsEnabled((*i)->Tag()) ? "enabled" : "disabled");
DBG_LOG(DBG_ANALYZER, "");
DBG_LOG(DBG_ANALYZER, " ");
DBG_LOG(DBG_ANALYZER, "Analyzers by port:");
for ( analyzer_map_by_port::const_iterator i = analyzers_by_port_tcp.begin(); i != analyzers_by_port_tcp.end(); i++ )

View file

@ -1909,7 +1909,7 @@ void Manager::SendEvent(EventHandlerPtr ev, list<Val*> events)
val_list* vl = new val_list;
#ifdef DEBUG
DBG_LOG(DBG_INPUT, "SendEvent with %lu vals (list)",
DBG_LOG(DBG_INPUT, "SendEvent with %" PRIuPTR " vals (list)",
events.size());
#endif