Hello Oleg,

To make it really usable for alternative printf some cleanup in the
formatting strings would be desirable as well.
since at the mo there is the mix of direct formatting string with macros
like PRIi16...

wbr
malo



On 2 March 2016 at 11:47, Oleg Hahm <oliver.h...@inria.fr> wrote:

> Hey Malo!
>
> On Wed, Mar 02, 2016 at 08:51:51AM +0100, malo wrote:
> > that would be even better indeed.
> > something like  #define LOG_PRINTF(...) LOG(LOG_PRINTF, __VA_ARGS__) and
> to
> > forbid to use printf?
>
> Hm, after thinking about this again, it's a bit more difficult, I guess.
> There
> are three types of actions where I see a need for printing strings:
> 1.) logging (something similar to syslog or journal on Linux)
> 2.) debugging
> 3.) some kind of CLI (e.g. our shell)
>
> 1.) should be covered by LOG_* from log.h.
> 2.) is covered by DEBUG()
> 3.) still needs a concept
>
> But in general, I agree that getting rid of printf() all over the code is
> desirable.
>
> Cheers,
> Oleg
> --
> The problem with a SQL security joke is that Sony don't get it.
>
> _______________________________________________
> devel mailing list
> devel@riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel
>
>
_______________________________________________
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel

Reply via email to