In reply to Ramyas:
The functionality of %p is very limited. You will have break up your struct into individual fields to format or break up the formatting by using an intermediate variable using
$swriteh(temp, “Value of Queue is %p_\n”,rd[i])
`print_message(log_id,temp,6);