2015-02-24 16:09 GMT+03:00 Georg-Johann Lay <a...@gjlay.de>:
> avr-log.c and respective macros in avr-protos.h still assume that the
> implementation language is C90, i.e. no variadic macros are available.
>
> This patch cleans up the code from the cumbersome old approach and uses
> variadic macros for avr_dump, avr_edump and avr_fdump.
>
> Ok for trunk?
>
> Johann
>
>
>         Use variadic macros with avr-log.c.
>
>         * config/avr/avr-protos.h (avr_vdump): New prototype.
>         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
>         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
>         * config/avr/avr-log.c: Adjust comments.
>         (avr_vdump): New function.
>         (avr_vadump): Pass caller as 2nd argument instead of format string.
>         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
>         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.

Ok.

Denis.

Reply via email to