summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/perror.c
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-03-05 21:20:18 +0000
committeradrian <adrian@FreeBSD.org>2011-03-05 21:20:18 +0000
commit3b8e8b2e3136f809f5a78af99a2dee2f5687e84a (patch)
tree9ab5175c3a13e8a187e341ea36e22efc6eb35447 /lib/libc/stdio/perror.c
parentde259f37cb31240cbd58da707d68faf712d77bb3 (diff)
downloadFreeBSD-src-3b8e8b2e3136f809f5a78af99a2dee2f5687e84a.zip
FreeBSD-src-3b8e8b2e3136f809f5a78af99a2dee2f5687e84a.tar.gz
Change HALDEBUG() to be a macro that conditionally calls the debug output routine.
The earlier way of doing debugging would evaluate the function parameters before calling the HALDEBUG. In the case of detailed register debugging would mean a -lot- of unneeded register IO and other stuff was going on. This method evaluates the ath_hal_debug variable before the function parameters are evaluated, drastically reducing the amount of overhead enabling HAL debugging during compilation.
Diffstat (limited to 'lib/libc/stdio/perror.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud