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/tcp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/cmd/netstack/tcp.c') diff --git a/src/cmd/netstack/tcp.c b/src/cmd/netstack/tcp.c index d1adeab..cbe2c14 100644 --- a/src/cmd/netstack/tcp.c +++ b/src/cmd/netstack/tcp.c @@ -5,6 +5,7 @@ #include "proto.h" #include "util.h" #include +#include #include enum { @@ -123,7 +124,7 @@ struct tcp_conn *tcpc_new( // TODO wait for ARP reply arp_request(c->rip); if (arpcache_get(state.gateway, &c->rmac) < 0) { - eprintf("neither target nor gateway not in ARP cache, dropping"); + warnx("neither target nor gateway not in ARP cache, dropping"); free(c); return NULL; } @@ -222,7 +223,7 @@ void tcp_parse(const uint8_t *buf, size_t len, struct ipv4 ip) { } } if (iter->lack != seq && iter->lack - 1 != seq) { - eprintf("remote seq jumped by %d", seq - iter->lack); + warnx("remote seq jumped by %d", seq - iter->lack); tcpc_sendraw(iter, FlagACK, NULL, 0); return; } -- cgit v1.2.3