How to print and check the values in deepstream-app source file?

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson TX2 GPU)
• DeepStream Version:- 5.1
• JetPack Version:- 4.5.1
• TensorRT Version:- 7.1.3.0
• Issue Type:- Unable to get values through print statement
**• How to reproduce the issue ? **
To reproduce this issue go to sources/app/sample-apps/deepstream-app
Then edit the file called deepstream_app_main.c
In that file I tried to put print statement in lineno:116 as g_print(“val”, obj->text_params);
But I didnt get any output. Im not sure how to print and get the values

run command is
/opt/nvidia/deepstream/deepstream-5.1/sources/apps/sample_apps/deepstream-app$ ./deepstream-app -c ../../../../samples/configs/tlt_pretrained_models/deepstream_app_source1_facedetectir.txt

• Requirement details I need to know what are the values are getting while detecting the face or object like faceid, face parameters etc.,

Can anyone help me to solve this

Are you sure you want to print by g_print(“val”, obj->text_params);?

How much do you know about c programming?
https://developer.gnome.org/glib/stable/glib-Warnings-and-Assertions.html#g-print
https://www.cprogramming.com/tutorial/printf-format-strings.html

Im new to this development process. So I tried to get the values with g_print., If I use printf im not able to get the values from the variable

It is not to use printf or g_print. You should use correct string format with any print, such as " g_print(“val %d”, obj->text_params.x_offset); That is why I’m asking whether you are familiar with c programming.

It is not deepstream related. There are lots of c/c++ programming sources in internet. Let’s focus on deepstream topics in this forum.

@Fiona.Chen Thank you for your assistance. Sure will look into C Programming sources. I’ll post Deepstream related topics here.