ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Console Window option moved?

From: Stephen Fisher <steve@xxxxxxxxxxxxxxxxxx>
Date: Mon, 12 Dec 2011 09:42:30 -0700
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.