Skip to content

Commit 69a270c

Browse files
committed
bgen: use nob_log()
1 parent d193416 commit 69a270c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/bgen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub unsafe fn main(mut _argc: i32, mut _argv: *mut*mut c_char) -> Option<()> {
2424
if !read_entire_dir(parent, &mut children) { return None; }
2525
qsort(children.items as *mut c_void, children.count, size_of::<*const c_char>(), compar_cstr);
2626
let mut sb: String_Builder = zeroed();
27-
printf(c!("CODEGENS:\n"));
27+
log(Log_Level::INFO, c!("CODEGENS:"));
2828
sb_appendf(&mut sb, c!("codegens! {\n"));
2929
for i in 0..children.count {
3030
let child = *children.items.add(i);
@@ -35,7 +35,7 @@ pub unsafe fn main(mut _argc: i32, mut _argv: *mut*mut c_char) -> Option<()> {
3535
// In any case we should do something with the invalid module names.
3636
let child = temp_strip_suffix(child, c!(".rs")).unwrap_or(child);
3737
sb_appendf(&mut sb, c!(" %s,\n"), child);
38-
printf(c!(" %s\n"), child);
38+
log(Log_Level::INFO, c!(" %s"), child);
3939
}
4040
sb_appendf(&mut sb, c!("}\n"));
4141
let output_path = temp_sprintf(c!("%s/.INDEX.rs"), parent);

0 commit comments

Comments
 (0)