mirror of https://github.com/xqemu/xqemu.git
hw/sd/omap_mmc: 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-7-f4bug@amsat.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
31a1246df6
commit
25b98b96af
|
@ -17,6 +17,7 @@
|
||||||
* with this program; if not, see <http://www.gnu.org/licenses/>.
|
* with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
|
#include "qemu/log.h"
|
||||||
#include "hw/hw.h"
|
#include "hw/hw.h"
|
||||||
#include "hw/arm/omap.h"
|
#include "hw/arm/omap.h"
|
||||||
#include "hw/sd/sd.h"
|
#include "hw/sd/sd.h"
|
||||||
|
@ -449,10 +450,14 @@ static void omap_mmc_write(void *opaque, hwaddr offset,
|
||||||
s->enable = (value >> 11) & 1;
|
s->enable = (value >> 11) & 1;
|
||||||
s->be = (value >> 10) & 1;
|
s->be = (value >> 10) & 1;
|
||||||
s->clkdiv = (value >> 0) & (s->rev >= 2 ? 0x3ff : 0xff);
|
s->clkdiv = (value >> 0) & (s->rev >= 2 ? 0x3ff : 0xff);
|
||||||
if (s->mode != 0)
|
if (s->mode != 0) {
|
||||||
printf("SD mode %i unimplemented!\n", s->mode);
|
qemu_log_mask(LOG_UNIMP,
|
||||||
if (s->be != 0)
|
"omap_mmc_wr: mode #%i unimplemented\n", s->mode);
|
||||||
printf("SD FIFO byte sex unimplemented!\n");
|
}
|
||||||
|
if (s->be != 0) {
|
||||||
|
qemu_log_mask(LOG_UNIMP,
|
||||||
|
"omap_mmc_wr: Big Endian not implemented\n");
|
||||||
|
}
|
||||||
if (s->dw != 0 && s->lines < 4)
|
if (s->dw != 0 && s->lines < 4)
|
||||||
printf("4-bit SD bus enabled\n");
|
printf("4-bit SD bus enabled\n");
|
||||||
if (!s->enable)
|
if (!s->enable)
|
||||||
|
|
Loading…
Reference in New Issue