s390x/pci: make printf always compile in debug output
commit229913f0ef3807b5cf4eecd5a0ef8133ff6dbbcb
authorDanil Antonov <g.danil.anto@gmail.com>
Sat, 1 Apr 2017 13:56:30 +0000 (1 16:56 +0300)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Fri, 21 Apr 2017 07:32:09 +0000 (21 09:32 +0200)
tree0d5bb22fd6866c841080d05c9cb210642c853519
parent08564ecd4df76c047baf956f66e8a9bffe5e0e97
s390x/pci: make printf always compile in debug output

Wrapped printf calls inside debug macros (DPRINTF) in `if` statement.
This will ensure that printf function will always compile even if debug
output is turned off and, in turn, will prevent bitrot of the format
strings.

Signed-off-by: Danil Antonov <g.danil.anto@gmail.com>
Message-Id: <CA+KKJYBi31Bs7DtVdzZdwG2t+u5+FGiAhQpd3pqJzUX1O8Cprg@mail.gmail.com>
[CH: remove now misleading comments]
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/s390-pci-bus.c
hw/s390x/s390-pci-inst.c