- added message debug

git-svn-id: http://moon:8086/svn/software/trunk/projects/GnuRadio@484 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2019-05-27 19:46:24 +00:00
parent 4373e458c7
commit 29d7b7ef65
6 changed files with 17 additions and 4 deletions
+7 -1
View File
@@ -37,7 +37,13 @@ namespace gr {
{
if (pmt::is_dict(msg))
{
fprintf(stderr, "Is dictionary\n!");
fprintf(stderr, "Is dictionary.\n");
pmt::pmt_t keys = pmt::dict_keys(msg);
for (int i=0; i < pmt::length(keys); i++)
{
pmt::pmt_t key = pmt::nth(i, keys);
fprintf(stderr, "Key: %s\n!", pmt::symbol_to_string(key));
}
}
else
{