From cf7877737ff5032f8bad59d57b048f66c4813b5b Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 30 Aug 2023 00:03:43 +0200 Subject: style: get rid of eprintf --- src/cmd/netstack/ether.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cmd/netstack/ether.c') diff --git a/src/cmd/netstack/ether.c b/src/cmd/netstack/ether.c index 52abac2..7f3f3d4 100644 --- a/src/cmd/netstack/ether.c +++ b/src/cmd/netstack/ether.c @@ -1,4 +1,5 @@ #include +#include #include "proto.h" #include "util.h" @@ -40,7 +41,7 @@ static const size_t fhoff = sizeof(size_t); uint8_t *ether_start(size_t len, struct ethernet ether) { if (len < 60 - Payload) len = 60 - Payload; - if (!ether.dst) eprintf("NULL ether.dst!"); // TODO arp? i guess? + if (!ether.dst) warnx("null ether.dst"); if (!ether.src) ether.src = &state.mac; uint8_t *buf = malloc(fhoff + Payload + len); -- cgit v1.2.3