diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-02-19 13:44:58 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-02-19 15:40:42 +0000 |
commit | 8135d14730827494ba23f893f1cfa319140f62fd (patch) | |
tree | 56d29c52b10cfb6932e2fadbb696babec425f253 /pfinet/ethernet.c | |
parent | 17a310640b52e08483b6f04dda490e9ec229811a (diff) |
More helpful messages
Diffstat (limited to 'pfinet/ethernet.c')
-rw-r--r-- | pfinet/ethernet.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pfinet/ethernet.c b/pfinet/ethernet.c index 754c9156..e4774e64 100644 --- a/pfinet/ethernet.c +++ b/pfinet/ethernet.c @@ -176,7 +176,7 @@ ethernet_open (struct device *dev) err = device_open (master_device, D_WRITE | D_READ, "eth", &edev->ether_port); mach_port_deallocate (mach_task_self (), master_device); if (err) - error (2, err, "%s", dev->name); + error (2, err, "device_open on %s", dev->name); } else { @@ -193,7 +193,7 @@ ethernet_open (struct device *dev) if (err) { error (0, errno, "file_name_lookup %s", dev->name); - error (2, err, "%s", dev->name); + error (2, err, "device_open(%s)", dev->name); } } @@ -201,7 +201,7 @@ ethernet_open (struct device *dev) MACH_MSG_TYPE_MAKE_SEND, 0, ether_filter, ether_filter_len); if (err) - error (2, err, "%s", dev->name); + error (2, err, "device_set_filter on %s", dev->name); return 0; } |