From a54ef5ad9baed60b30983fd9ec0829d1d99b3cc6 Mon Sep 17 00:00:00 2001 From: "Todd T.Fries" Date: Thu, 28 Jun 2001 14:00:37 +0000 Subject: [PATCH] add strerror to bpf open error --- bochs/iodev/eth_fbsd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bochs/iodev/eth_fbsd.cc b/bochs/iodev/eth_fbsd.cc index e8cdcc03f..ebe0a7104 100644 --- a/bochs/iodev/eth_fbsd.cc +++ b/bochs/iodev/eth_fbsd.cc @@ -147,7 +147,7 @@ bx_fbsd_pktmover_c::bx_fbsd_pktmover_c(const char *netif, do { (void)sprintf(device, "/dev/bpf%d", n++); this->bpf_fd = open(device, O_RDWR); - BX_INFO(("tried %s, returned %d",device,this->bpf_fd)); + BX_INFO(("tried %s, returned %d (%s)",device,this->bpf_fd,strerror(errno))); if(errno == EACCES) break; } while (this->bpf_fd == -1);