summaryrefslogtreecommitdiff
path: root/examples/common/avb.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/common/avb.c')
-rw-r--r--examples/common/avb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/common/avb.c b/examples/common/avb.c
index f8f6f1e8..bd38a889 100644
--- a/examples/common/avb.c
+++ b/examples/common/avb.c
@@ -69,12 +69,12 @@ int pci_connect(device_t *igb_dev)
printf("attaching to %s\n", devpath);
err = igb_attach(devpath, igb_dev);
if (err) {
- printf("attach failed! (%s)\n", strerror(errno));
+ printf("attach failed! (%s)\n", strerror(err));
continue;
}
err = igb_attach_tx(igb_dev);
if (err) {
- printf("attach_tx failed! (%s)\n", strerror(errno));
+ printf("attach_tx failed! (%s)\n", strerror(err));
igb_detach(igb_dev);
continue;
}