Skip to content

Commit

Permalink
llama: fix double \n in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
cztomsik committed Apr 19, 2024
1 parent cb11795 commit d28a77d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llama.zig
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub const Pool = struct {
pub fn init(allocator: std.mem.Allocator, options: PoolOptions) Pool {
const H = struct {
fn trampoline(_: c.enum_ggml_log_level, data: [*c]const u8, _: ?*anyopaque) callconv(.C) void {
log.debug("{s}", .{data});
log.debug("{s}", .{std.mem.trimRight(u8, std.mem.span(data), &.{'\n'})});
}
};

Expand Down

0 comments on commit d28a77d

Please sign in to comment.