On Sun, Dec 11, 2011 at 01:11:46AM +0100, Akos Vandra wrote:
> As far as I know, I can use g_print for printing debug info from
> dumpcap code... isn't that right? I tried compiling code with that,
> and it builds fine. However nothing is printed on the console. I am
> using a linux build system (ubuntu 10.04 LTS).
This is complicated because dumpcap uses stderr to pipe error messages
to Wireshark, but they have to be in a special format (see source code
comment starting on line 3790 of dumpcap.c in the latest SVN). The
sync_pipe_errmsg_to_parent() function might help you feed an error to
Wireshark, which in theory it will pass through to the user in the GUI.