How to print a queue of struct elements in Hex format

In reply to dave_59:

Hi Dave,
Thanks for your response.
I’m using a $psprintf(“Value of Queue is %p_”,rd[i]);

How can I use $psprintf and print the Queue items in Hex format?

I’m calling an internal `define which takes 3 inputs : log_id, text and verbosity for any print messages.
So, I’m using something like:

`print_message(log_id,$psprintf(“Value of Queue is %p_”,rd[i]),6);

(The print message is a `define which takes the three parameters stated above).
Can you please help with how can I pass the text string message inside psprintf to display value of queue items in Hex format?

Thanks