mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
Merge pull request #664 from birarda/master
print packet version mismatch to the log
This commit is contained in:
commit
f9e142ef52
1 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <stdio.h>
|
||||
|
||||
#include "PacketHeaders.h"
|
||||
#include "Log.h"
|
||||
|
||||
PACKET_VERSION versionForPacketType(PACKET_TYPE type) {
|
||||
switch (type) {
|
||||
|
@ -24,7 +25,7 @@ bool packetVersionMatch(unsigned char* packetHeader) {
|
|||
if (packetHeader[1] == versionForPacketType(packetHeader[0])) {
|
||||
return true;
|
||||
} else {
|
||||
printf("There is a packet version mismatch for packet with header %c\n", packetHeader[0]);
|
||||
printLog("There is a packet version mismatch for packet with header %c\n", packetHeader[0]);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue