avoid unnecessary logging

This commit is contained in:
notaz 2013-07-31 02:27:44 +03:00
parent 86b38dc46d
commit e7b3ad1bda

View file

@ -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