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));
|
||||||
}
|
}
|
||||||
|
|
|
@ -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