From: notaz Date: Tue, 30 Jul 2013 23:27:44 +0000 (+0300) Subject: avoid unnecessary logging X-Git-Tag: v1.85~16 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7b3ad1bdaccc2c64c4b54f0cfc6740e0d715bd1;p=picodrive.git avoid unnecessary logging --- 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