Skip to content

Commit

Permalink
Adding key name to print_id logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sg777 committed Sep 8, 2023
1 parent 72faf8c commit 1962f58
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions privatebet/print.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,28 +95,28 @@ void print_table_id(char *id)
for (int32_t i = 0; i < all_t_p_keys_no; i++) {
cJSON *temp = get_cJSON_from_id_key_vdxfid(id, get_key_data_vdxf_id(all_t_p_keys[i], game_id));
if (temp)
dlg_info("%s", cJSON_Print(temp));
dlg_info("%s :: %s", all_t_p_key_names[i], cJSON_Print(temp));
}
for (int32_t i = 0; i < all_t_d_p_keys_no; i++) {
cJSON *temp =
get_cJSON_from_id_key_vdxfid(id, get_key_data_vdxf_id(all_t_d_p_keys[i], game_id));
if (temp)
dlg_info("%s", cJSON_Print(temp));
dlg_info("%s :: %s", all_t_d_p_key_names[i], cJSON_Print(temp));
}
for (int32_t i = 0; i < all_t_b_p_keys_no; i++) {
cJSON *temp =
get_cJSON_from_id_key_vdxfid(id, get_key_data_vdxf_id(all_t_b_p_keys[i], game_id));
if (temp)
dlg_info("%s", cJSON_Print(temp));
dlg_info("%s :: %s", all_t_b_p_key_names[i], cJSON_Print(temp));
}
cJSON *temp = get_cJSON_from_id_key_vdxfid(id, get_key_data_vdxf_id(T_GAME_INFO_KEY, game_id));
if (temp)
dlg_info("%s", cJSON_Print(temp));
dlg_info("%s :: %s", T_GAME_INFO_KEY, cJSON_Print(temp));

temp = NULL;
temp = get_cJSON_from_id_key_vdxfid(id, get_key_data_vdxf_id(T_B_DECK_BV_KEY, game_id));
if (temp)
dlg_info("%s", cJSON_Print(temp));
dlg_info("%s :: %s", T_B_DECK_BV_KEY, cJSON_Print(temp));
}
}

Expand Down

0 comments on commit 1962f58

Please sign in to comment.