base: Clean up some #ifs in _format_string.
authorGabe Black <gabeblack@google.com>
Wed, 14 Oct 2020 08:21:41 +0000 (01:21 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 14 Oct 2020 13:59:28 +0000 (13:59 +0000)
commitedf8b34026c564e28ac715af8bc8088ed9c6e94f
tree3ed4856662bde530e6a7e6da5fb55436b667d02e
parent91d83cc8a12883f2d7493b37f50487cd7f03a9e6
base: Clean up some #ifs in _format_string.

These were checking for gcc version 3, well below the minimum version we
support, and were hard wired to be enabled anyway. This change gets rid
of the check and the dead code on the hard wired off branch.

Also, this change cleans up the style in the surviving code and
simplifies it slightly.

Change-Id: I8df73a378f478413c111a4dea962450a37fb4092
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35977
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/cprintf_formats.hh