remove debug statements

This commit is contained in:
Motiejus Jakštys 2022-02-25 13:47:29 +02:00 committed by Motiejus Jakštys
parent 2154205711
commit b9fb07121b

View File

@ -111,30 +111,6 @@ pub const PackedUser = struct {
next = bytes[nextStart..];
}
std.debug.print("\n", .{});
std.debug.print("startBlob: {d}\n", .{startBlob});
std.debug.print("endBlob: {d}\n", .{endBlob});
std.debug.print("nextStart: {d}\n", .{nextStart});
std.debug.print("len(userdata): {d}\n", .{bytes[startBlob..endBlob].len});
std.debug.print("uid: {d}\n", .{inner.uid});
std.debug.print("gid: {d}\n", .{inner.gid});
std.debug.print("additional_gids_offset: {d}\n", .{inner.additional_gids_offset});
std.debug.print("shell_here: {d}\n", .{inner.shell_here});
std.debug.print("shell_len_or_idx: {d}\n", .{inner.shell_len_or_idx});
std.debug.print("home_len: {d}\n", .{inner.home_len});
std.debug.print("name_is_a_suffix: {d}\n", .{inner.name_is_a_suffix});
std.debug.print("name_len: {d}\n", .{inner.name_len});
std.debug.print("gecos_len: {d}\n", .{inner.gecos_len});
std.debug.print("userdata: {s}\n", .{bytes[startBlob..endBlob]});
std.debug.print("userdata[0]: {c}\n", .{bytes[startBlob]});
std.debug.print("userdata[1]: {c}\n", .{bytes[startBlob + 1]});
std.debug.print("userdata[2]: {c}\n", .{bytes[startBlob + 2]});
std.debug.print("userdata[3]: {c}\n", .{bytes[startBlob + 3]});
std.debug.print("userdata[4]: {c}\n", .{bytes[startBlob + 4]});
std.debug.print("userdata[5]: {c}\n", .{bytes[startBlob + 5]});
std.debug.print("userdata[6]: {c}\n", .{bytes[startBlob + 6]});
std.debug.print("userdata[7]: {c}\n", .{bytes[startBlob + 7]});
return Entry{
.user = PackedUser{
.inner = inner,
@ -318,7 +294,6 @@ test "construct PackedUser section" {
var buf = ArrayList(u8).init(testing.allocator);
defer buf.deinit();
std.debug.print("\n", .{});
const users = [_]User{ User{
.uid = 1000,
.gid = 1000,