1
0
mirror of https://passt.top/passt synced 2024-07-01 23:42:41 +00:00

pcap: Fix mistake in printed string

Packets are saved *to* a file, not *at* it.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2022-03-15 01:00:52 +01:00
parent d2e40bb8d9
commit 5c0426981e

2
pcap.c
View File

@ -207,7 +207,7 @@ void pcap_init(struct ctx *c)
return;
}
info("Saving packet capture at %s", c->pcap);
info("Saving packet capture to %s", c->pcap);
if (write(pcap_fd, &pcap_hdr, sizeof(pcap_hdr)) < 0)
warn("Cannot write PCAP header: %s", strerror(errno));