From 1962f5856be341107753bf35ea8235f7b79327ac Mon Sep 17 00:00:00 2001 From: sg777 Date: Tue, 5 Sep 2023 10:46:50 +0530 Subject: [PATCH] Adding key name to print_id logs --- privatebet/print.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/privatebet/print.c b/privatebet/print.c index ab580eac..5ad2dfa1 100644 --- a/privatebet/print.c +++ b/privatebet/print.c @@ -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)); } }