Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Console output from dissectors

Date Prev · Date Next · Thread Prev · Thread Next
From: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
Date: Wed, 29 Jun 2016 11:59:48 +0200
Hi Dario,

it is "False positive" because printf is part of #ifdef DEBUG... (and no DEBUG enable)
but you can look packet-mysql.c, there is the same "case" ( #ifdef CTDEBUG) and i have change to use proto_tree_add_debug_* functions

Cheers

On Wed, Jun 29, 2016 at 9:47 AM, Dario Lombardo <dario.lombardo.ml@xxxxxxxxx> wrote:
Hello
Running checkAPI against the dissectors, I get warnings like

Warning: Found termoutput APIs in packet-wtp.c: printf

Are the dissector expected to produce console output? If yes, which function should they use? g_log()?
Thanks
Dario.

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe