if (clock->interrupt_message) {
if (dcpu16_interrupt(vm, clock->interrupt_message))
- vm->msg_cb_(MSG_ERROR, "%s: could not send interrupt", hw->mod->name_);
+ vm->msg_cb_(DCPU16_MSG_ERROR, "%s: could not send interrupt", hw->mod->name_);
}
}
}
hw->data = calloc(1, sizeof(struct clock_));
if (hw->data == NULL) {
- hw->vm->msg_cb_(MSG_ERROR, "%s():%s", "calloc", strerror(errno));
+ hw->vm->msg_cb_(DCPU16_MSG_ERROR, "%s():%s", "calloc", strerror(errno));
return -1;
}
return 0;