mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
More format specifier cleanup
This commit is contained in:
parent
c464cf78dd
commit
a2c8f8a9b6
3 changed files with 4 additions and 4 deletions
|
@ -126,7 +126,7 @@ bool BinarySerializationFormat::Read(uint32* v, const char* tag)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
*v = ntohl(*v);
|
*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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -313,7 +313,7 @@ bool BinarySerializationFormat::Write(uint16 v, const char* tag)
|
||||||
|
|
||||||
bool BinarySerializationFormat::Write(uint32 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);
|
v = htonl(v);
|
||||||
return WriteData(&v, sizeof(v));
|
return WriteData(&v, sizeof(v));
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,7 +107,7 @@ void Manager::DumpDebug()
|
||||||
DBG_LOG(DBG_ANALYZER, " %s (%s)", (*i)->Name().c_str(),
|
DBG_LOG(DBG_ANALYZER, " %s (%s)", (*i)->Name().c_str(),
|
||||||
IsEnabled((*i)->Tag()) ? "enabled" : "disabled");
|
IsEnabled((*i)->Tag()) ? "enabled" : "disabled");
|
||||||
|
|
||||||
DBG_LOG(DBG_ANALYZER, "");
|
DBG_LOG(DBG_ANALYZER, " ");
|
||||||
DBG_LOG(DBG_ANALYZER, "Analyzers by port:");
|
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++ )
|
for ( analyzer_map_by_port::const_iterator i = analyzers_by_port_tcp.begin(); i != analyzers_by_port_tcp.end(); i++ )
|
||||||
|
|
|
@ -1909,7 +1909,7 @@ void Manager::SendEvent(EventHandlerPtr ev, list<Val*> events)
|
||||||
val_list* vl = new val_list;
|
val_list* vl = new val_list;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
DBG_LOG(DBG_INPUT, "SendEvent with %lu vals (list)",
|
DBG_LOG(DBG_INPUT, "SendEvent with %" PRIuPTR " vals (list)",
|
||||||
events.size());
|
events.size());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue