bunpen: use stdlib log isntead of raw fmt::printfln

This commit is contained in:
2024-08-22 14:40:46 +00:00
parent dab7803cbb
commit 634f13ba6b

View File

@@ -1,12 +1,12 @@
// vim: set shiftwidth=2 : // vim: set shiftwidth=2 :
use fmt; use log;
use strings; use strings;
use os; use os;
use os::exec; use os::exec;
fn do_exec(args: []str) never = { fn do_exec(args: []str) never = {
let joined = strings::join(" ", args...); let joined = strings::join(" ", args...);
fmt::printfln("exec: {}", joined)!; log::printfln("exec: {}", joined);
free(joined); free(joined);
let cmd = os::exec::cmd(args[0], args[1..]...)!; let cmd = os::exec::cmd(args[0], args[1..]...)!;