diff options
author | Javier <dev.git@javispedro.com> | 2022-04-30 21:45:45 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2022-04-30 21:45:45 +0200 |
commit | 3b240b60f05bd6fec34413791e1d215afc2bdde5 (patch) | |
tree | d7f16d7114e6f3c3ca9536074d96c5815a85f03a /vbox.c | |
parent | 9595ebb6348544a2945470a5f271de7b58549bcd (diff) | |
download | vbados-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.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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 } } |