summaryrefslogtreecommitdiffstats
path: root/hw/dma/omap_dma.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2018-06-26 18:50:40 +0200
committerPeter Maydell2018-06-26 18:50:40 +0200
commitf3724bf5e635f9cecaa37668b7aa3ea010a1ffb6 (patch)
treed18817b18aab1d9452b72988ec302ba4ef02147b /hw/dma/omap_dma.c
parenthw/input/tsc2005: Use qemu_log_mask(GUEST_ERROR) instead of fprintf (diff)
downloadqemu-f3724bf5e635f9cecaa37668b7aa3ea010a1ffb6.tar.gz
qemu-f3724bf5e635f9cecaa37668b7aa3ea010a1ffb6.tar.xz
qemu-f3724bf5e635f9cecaa37668b7aa3ea010a1ffb6.zip
hw/dma/omap_dma: Use qemu_log_mask(UNIMP) instead of printf
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-id: 20180624040609.17572-4-f4bug@amsat.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/dma/omap_dma.c')
-rw-r--r--hw/dma/omap_dma.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/dma/omap_dma.c b/hw/dma/omap_dma.c
index abd18c67ea..ab3a1b0451 100644
--- a/hw/dma/omap_dma.c
+++ b/hw/dma/omap_dma.c
@@ -18,6 +18,7 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include "qemu/osdep.h"
+#include "qemu/log.h"
#include "qemu-common.h"
#include "qemu/timer.h"
#include "hw/arm/omap.h"
@@ -1439,8 +1440,9 @@ static int omap_dma_sys_read(struct omap_dma_s *s, int offset,
case 0x480: /* DMA_PCh0_SR */
case 0x482: /* DMA_PCh1_SR */
case 0x4c0: /* DMA_PChD_SR_0 */
- printf("%s: Physical Channel Status Registers not implemented.\n",
- __func__);
+ qemu_log_mask(LOG_UNIMP,
+ "%s: Physical Channel Status Registers not implemented\n",
+ __func__);
*ret = 0xff;
break;