aboutsummaryrefslogtreecommitdiff
path: root/vbox.c
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-30 21:45:45 +0200
committerJavier <dev.git@javispedro.com>2022-04-30 21:45:45 +0200
commit3b240b60f05bd6fec34413791e1d215afc2bdde5 (patch)
treed7f16d7114e6f3c3ca9536074d96c5815a85f03a /vbox.c
parent9595ebb6348544a2945470a5f271de7b58549bcd (diff)
downloadvbados-3b240b60f05bd6fec34413791e1d215afc2bdde5.tar.gz
vbados-3b240b60f05bd6fec34413791e1d215afc2bdde5.zip
refactor: switch debug log to a more convenient printf-like API
Diffstat (limited to 'vbox.c')
-rw-r--r--vbox.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/vbox.c b/vbox.c
index 9fd0aa4..7640b13 100644
--- a/vbox.c
+++ b/vbox.c
@@ -94,9 +94,7 @@ int vbox_init_buffer(LPVBOXCOMM vb, unsigned size)
if (err) {
// As far as I have seen, most VDS providers always keep low memory contiguous,
// so I'm not handling VDS_REGION_NOT_CONTIGUOUS here.
- dlog_print("Error while VDS locking, err=");
- dlog_printd(err);
- dlog_endline();
+ dprintf("Error while VDS locking, err=%d\n", err);
return err;
}
@@ -115,9 +113,7 @@ int vbox_release_buffer(LPVBOXCOMM vb)
if (vb->vds && vds_available()) {
int err = vds_unlock_dma_buffer_region(&vb->dds, 0);
if (err) {
- dlog_print("Error while VDS unlocking, err=");
- dlog_printd(err);
- dlog_endline();
+ dprintf("Error while VDS unlocking, err=%d\n", err);
// Ignore the error, it's not like we can do anything
}
}