mirror of
https://passt.top/passt
synced 2024-10-05 05:25:48 +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:
parent
d2e40bb8d9
commit
5c0426981e
2
pcap.c
2
pcap.c
@ -207,7 +207,7 @@ void pcap_init(struct ctx *c)
|
|||||||
return;
|
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)
|
if (write(pcap_fd, &pcap_hdr, sizeof(pcap_hdr)) < 0)
|
||||||
warn("Cannot write PCAP header: %s", strerror(errno));
|
warn("Cannot write PCAP header: %s", strerror(errno));
|
||||||
|
Loading…
Reference in New Issue
Block a user