aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-dlpi.c
diff options
context:
space:
mode:
authorguy <guy>2000-11-22 05:32:55 +0000
committerguy <guy>2000-11-22 05:32:55 +0000
commitdc543edc9a9eb2626d49564ae03a151fcfc033f9 (patch)
treefdd289e234a7242e644d28ac6e13f567be304377 /pcap-dlpi.c
parent20784fd22c1b36980376eebb172307c68758d1ea (diff)
Fix a couple of error messages.
Diffstat (limited to 'pcap-dlpi.c')
-rw-r--r--pcap-dlpi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pcap-dlpi.c b/pcap-dlpi.c
index 153896a..e1bde1c 100644
--- a/pcap-dlpi.c
+++ b/pcap-dlpi.c
@@ -38,7 +38,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.62 2000-10-28 00:01:28 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.63 2000-11-22 05:32:55 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -909,12 +909,12 @@ get_dlpi_ppa(register int fd, register const char *device, register int unit,
}
if (i == ap->dl_count) {
snprintf(ebuf, PCAP_ERRBUF_SIZE,
- "can't find /dev/dlpi PPA for %s", device);
+ "can't find /dev/dlpi PPA for %s%d", device, unit);
return (-1);
}
if (ip->dl_hdw_state == HDW_DEAD) {
snprintf(ebuf, PCAP_ERRBUF_SIZE,
- "%s: hardware state: DOWN\n", device);
+ "%s%d: hardware state: DOWN\n", device, unit);
return (-1);
}
return ((int)ip->dl_ppa);