Skip to content

Commit eb7983a

Browse files
committed
the power of printf
1 parent 33b1678 commit eb7983a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

std/debug/index.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const ArrayList = std.ArrayList;
99
const builtin = @import("builtin");
1010

1111
const execinfo = @cImport(@cInclude("execinfo.h"));
12+
const printf = @cImport(@cInclude("stdio.h")).printf;
1213

1314
pub const FailingAllocator = @import("failing_allocator.zig").FailingAllocator;
1415

@@ -263,7 +264,7 @@ pub fn openSelfDebugInfo(allocator: &mem.Allocator) !&ElfStackTrace {
263264

264265
var i:i32 = 0;
265266
while (i < frames):(i += 1) {
266-
warn("{}\n", (??strs)[usize(i)]);
267+
_ = printf(c"%s\n", ??(??strs)[usize(i)]);
267268
}
268269
return error.TodoSupportMachoDebugInfo;
269270
},

0 commit comments

Comments
 (0)