pvpgn:dev "{X} format error" #485

Open
opened 2023-09-19 10:17:24 -06:00 by UnrealKaraulov · 1 comment
UnrealKaraulov commented 2023-09-19 10:17:24 -06:00 (Migrated from github.com)
Sep 19 18:54:33 [error] pvpgn::bnetd::_client_changeclient: Failed to format string (argument not found)

handle_bnet.cpp
line:

eventlog(eventlog_level_error, __FUNCTION__, "[{}] invalid attempt to change client from {X} to {X}", conn_get_socket(c), conn_get_clienttag(c), bn_int_get(packet->u.client_changeclient.clienttag));

If replaced {X} to {}, no error, why?(((

``` Sep 19 18:54:33 [error] pvpgn::bnetd::_client_changeclient: Failed to format string (argument not found) ``` handle_bnet.cpp line: ``` eventlog(eventlog_level_error, __FUNCTION__, "[{}] invalid attempt to change client from {X} to {X}", conn_get_socket(c), conn_get_clienttag(c), bn_int_get(packet->u.client_changeclient.clienttag)); ``` If replaced {X} to {}, no error, why?(((
UnrealKaraulov commented 2023-09-20 00:36:27 -06:00 (Migrated from github.com)
https://github.com/pvpgn/pvpgn-server/blob/fcdf00fedfd79a041e1a7b2f20c8d15995b0a762/src/bnetd/handle_bnet.cpp#L4845
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Techwizz/pvpgn-server#485
No description provided.