I have added my own functions for debug 

I think that this is a good way to implement these debug prints.

The functions tell us the line and the file who have called them so the debug work becomes easier (which I think is the main purpose of this issue).

If you agree with me then I could try to improve it by defining more debug levels or doing anything we find interesting.

Right now we can compile it as: "make all CFLAGS+=-DDEBUG_LOW=1"  and the timeout message will be printed.
If we compile mist with: "make all" the timeout message will not be shown while executing mist
Yes you can know, the value of `v` tells you how much is this important.

On 23 December 2014 at 12:15, pevalme <notifications@github.com> wrote:

> In src/mist.c
> <https://github.com/pierreganty/mist/pull/14#discussion-diff-22211401>:
>
> > @@ -1282,7 +1283,7 @@ int main(int argc, char *argv[ ])
> >  	head_msg();
> >  	mc=mist_cmdline_options_handle(argc, argv, &timeout, &input_file);
> >  	assert(mc!=NULL);
> > -	printf("Timeout established to %d seconds\n", timeout);
> > +	PRINTF_LVL_1("Timeout established to %d seconds\n", timeout);
>
> If I don't use different functions in the code, I'll have to print all the
> 'printf' or no one, because I can't know how much important is the message.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/pierreganty/mist/pull/14/files#r22211401>.
>