authorgravatar for git@l4.pmLuna <git@l4.pm> 2020-03-30 17:10:00-03:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-06-02 14:56:06-04:00
log11a06d4341a704d0f0c67803f12a3ac0706af3ad
treeb94a94ea0bb77dbf80ddae4d74e4b59e14177d4f
parentcb649b769c4a8d1d5d703994976c2c9e4ae4e03b

Remove warn() calls


1 files changed, 0 insertions(+), 6 deletions(-)

lib/std/net.zig-6
...@@ -273,7 +273,6 @@ pub const Address = extern union {...@@ -273,7 +273,6 @@ pub const Address = extern union {
273 }273 }
274274
275 var resolved_scope_id: u32 = 0;275 var resolved_scope_id: u32 = 0;
276 std.debug.warn("scope_id_value {} len {}\n", .{ scope_id_value, std.mem.len(scope_id_value) });
277 if (scope_id_index > 0) {276 if (scope_id_index > 0) {
278 const scope_id_str = scope_id_value[0..scope_id_index];277 const scope_id_str = scope_id_value[0..scope_id_index];
279 resolved_scope_id = std.fmt.parseInt(u32, scope_id_str, 10) catch |err| blk: {278 resolved_scope_id = std.fmt.parseInt(u32, scope_id_str, 10) catch |err| blk: {
...@@ -527,11 +526,8 @@ fn if_nametoindex(name: []const u8) !u32 {...@@ -527,11 +526,8 @@ fn if_nametoindex(name: []const u8) !u32 {
527 defer os.close(sockfd);526 defer os.close(sockfd);
528527
529 std.mem.copy(u8, &ifr.ifr_ifrn.name, name);528 std.mem.copy(u8, &ifr.ifr_ifrn.name, name);
530 std.debug.warn("name={} name.len={} ifr_name={}\n", .{ name, name.len, ifr.ifr_ifrn.name });
531 ifr.ifr_ifrn.name[name.len] = 0;529 ifr.ifr_ifrn.name[name.len] = 0;
532530
533 std.debug.warn("{} {} {}\n", .{ sockfd, os.linux.SIOCGIFINDEX, @ptrToInt(&ifr) });
534
535 const rc = os.system.syscall3(531 const rc = os.system.syscall3(
536 os.linux.SYS_ioctl,532 os.linux.SYS_ioctl,
537 @bitCast(usize, @as(isize, sockfd)),533 @bitCast(usize, @as(isize, sockfd)),
...@@ -551,8 +547,6 @@ fn if_nametoindex(name: []const u8) !u32 {...@@ -551,8 +547,6 @@ fn if_nametoindex(name: []const u8) !u32 {
551 else => {},547 else => {},
552 }548 }
553549
554 std.debug.warn("ival={}, rest={}\n", .{ ifr.ifr_ifru.ifru_ivalue, ifr.ifr_ifru });
555
556 return @bitCast(u32, ifr.ifr_ifru.ifru_ivalue);550 return @bitCast(u32, ifr.ifr_ifru.ifru_ivalue);
557}551}
558552