Use variadic macros with avr-log.c.
authorGeorg-Johann Lay <avr@gjlay.de>
Wed, 25 Feb 2015 12:08:57 +0000 (12:08 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Wed, 25 Feb 2015 12:08:57 +0000 (12:08 +0000)
commit10fbfd1bd1b5fc1942457a6fd67903367cb5f876
tree51ac589ee4d7a23f013ea6acd79f79d0eafc0692
parent1d3d9afaff77287cdcbf6af5b4a4f54d0dc39119
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.

From-SVN: r220962
gcc/ChangeLog
gcc/config/avr/avr-log.c
gcc/config/avr/avr-protos.h