From e7b3ad1bdaccc2c64c4b54f0cfc6740e0d715bd1 Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 31 Jul 2013 02:27:44 +0300 Subject: [PATCH] avoid unnecessary logging --- pico/videoport.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pico/videoport.c b/pico/videoport.c index ab02af8b..b78c3585 100644 --- a/pico/videoport.c +++ b/pico/videoport.c @@ -208,7 +208,8 @@ static void DmaSlow(int len) break; default: - elprintf(EL_VDPDMA|EL_ANOMALY, "DMA with bad type %i", Pico.video.type); + if (Pico.video.type != 0 || (EL_LOGMASK & EL_VDPDMA)) + elprintf(EL_VDPDMA|EL_ANOMALY, "DMA with bad type %i", Pico.video.type); break; } // remember addr @@ -545,3 +546,5 @@ unsigned int PicoVideoRead8(unsigned int a) return 0; } + +// vim:shiftwidth=2:ts=2:expandtab -- 2.39.5