Adding debug message using g_messge in ods-obex.c

0 views
Skip to first unread message

vikram

unread,
Jun 1, 2009, 3:46:42 AM6/1/09
to obex-data-server developers
Hi All,
I am trying to understand code floe by keeping some debug message in
ods-data-server.
I kept debug statements using g_message in ods-main.c , it worked fine
i got debug statements in terminal.

But i used same g_message in ods-obex.c , i am not able to see any
message. How to enable there messages..?
Is there any other way to display debug info in terminal or any
logs..?

Thanks
Vikram

Tadas Dailyda

unread,
Jun 1, 2009, 7:34:20 AM6/1/09
to ods-...@googlegroups.com
Hi,

g_message is used in ods-obex.c a lot and it works. Maybe you are
doing something wrong with compilation/running (just guessing).

Tadas Dailyda

vikram

unread,
Jun 1, 2009, 7:57:33 AM6/1/09
to obex-data-server developers
Hi,
I found the problem. Actually i did not remove obex-data-server in /
usr/bin, because of that bluetooth-sendto is using the old one only.
I removed obex-data-server in /usr/bin and ran the new one in
terminal with -n option. Now i am getting the debug messages.

Thanks
Vikram

Tadas Dailyda

unread,
Jun 1, 2009, 7:59:37 AM6/1/09
to ods-...@googlegroups.com
It's not necessary to remove it. You just have to ensure that it is not running:

killall obex-data-server
./obex-data-server -n (from working dir)
Reply all
Reply to author
Forward
0 new messages