diff options
Diffstat (limited to 'adapter')
-rw-r--r-- | adapter/vppapiclient/vppapiclient_adapter.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adapter/vppapiclient/vppapiclient_adapter.go b/adapter/vppapiclient/vppapiclient_adapter.go index 10ec53b..e9948e8 100644 --- a/adapter/vppapiclient/vppapiclient_adapter.go +++ b/adapter/vppapiclient/vppapiclient_adapter.go @@ -124,7 +124,7 @@ func (a *vppAPIClientAdapter) Disconnect() { // GetMsgID returns a runtime message ID for the given message name and CRC. func (a *vppAPIClientAdapter) GetMsgID(msgName string, msgCrc string) (uint16, error) { - nameAndCrc := C.CString(fmt.Sprintf("%s_%s", msgName, msgCrc)) + nameAndCrc := C.CString(msgName + "_" + msgCrc) defer C.free(unsafe.Pointer(nameAndCrc)) msgID := uint16(C.govpp_get_msg_index(nameAndCrc)) |