Fix formatstring

This commit is contained in:
Bernd Schoolmann 2023-09-20 03:52:43 +02:00
parent 8e88c8d8d8
commit 75c7a42a3c
No known key found for this signature in database

View File

@ -39,7 +39,7 @@ func registerPayloadParser(payloadParser parsePayload, emptyPayload interface{})
func ParsePayload(message IPCMessage) interface{} {
if _, ok := messageTypes[message.Type]; !ok {
log.Error("Unregistered message type %s", string(message.Type))
log.Error("Unregistered message type %d", int(message.Type))
return nil
}
if payload, err := messages[messageTypes[message.Type]](message.Payload); err != nil {