X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=hw_spc2000.c;h=47b0bf905425206df89a54452b643ee20b6c0818;hb=052f0d9ed1165dabd061c8eac39c3be71184a5cf;hp=1e20f59c4ce8803aa9ed6dd706b0e8426e9629b2;hpb=33efa05d43acf927c97daab10c00d1cbc2a7b9f6;p=dcpu16 diff --git a/hw_spc2000.c b/hw_spc2000.c index 1e20f59..47b0bf9 100644 --- a/hw_spc2000.c +++ b/hw_spc2000.c @@ -16,7 +16,7 @@ int spc2000_data_init_(struct dcpu16_hw *hw, void *data) { hw->data = calloc(1, sizeof(struct spc2000_)); if (hw->data == NULL) { - hw->vm->warn_cb_("%s():%s", "calloc", strerror(errno)); + hw->vm->msg_cb_(DCPU16_MSG_ERROR, "%s():%s", "calloc", strerror(errno)); return -1; } return 0; @@ -66,7 +66,7 @@ void spc2000_hwi_(struct dcpu16 *vm, struct dcpu16_hw *hw) { || vm->reg[DCPU16_REG_C] != 0) break; /* trigger */ - vm->warn_cb_("spc2000 triggered\n"); + vm->msg_cb_(DCPU16_MSG_INFO, "spc2000 triggered\n"); break; case 1: /* SET_UNIT_TO_SKIP */