Use debug dump mode to decode all keys in message

This commit is contained in:
Shahram Najm 2018-06-01 11:55:49 +01:00
parent 68dd0b3b87
commit e788a28814
3 changed files with 5 additions and 3 deletions

View File

@ -58,7 +58,8 @@ static int encode_file(char *template_file, char *output_file)
}
{
FILE *devnull = fopen("/dev/null", "w");
grib_dump_content(source_handle,devnull,"wmo",0,NULL);
grib_dump_content(source_handle,devnull, "debug", 0, NULL);
grib_dump_content(clone_handle, devnull, "debug", 0, NULL);
}
grib_handle_delete(clone_handle);
grib_handle_delete(source_handle);

View File

@ -57,7 +57,7 @@ static int encode_file(char *template_file, char *output_file)
}
{
FILE *devnull = fopen("/dev/null", "w");
grib_dump_content(source_handle,devnull,"wmo",0,NULL);
grib_dump_content(source_handle,devnull,"debug",0,NULL);
}
grib_handle_delete(source_handle);
free(values);

View File

@ -55,7 +55,8 @@ static int decode_file(char *template_file)
{
FILE *devnull = fopen("/dev/null", "w");
grib_dump_content(source_handle,devnull,"wmo",0,NULL);
grib_dump_content(source_handle, devnull, "debug", 0, NULL);
grib_dump_content(clone_handle, devnull, "debug", 0, NULL);
}
grib_handle_delete(clone_handle);