summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/ip.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-03-14 01:46:54 +0000
committerbrian <brian@FreeBSD.org>2000-03-14 01:46:54 +0000
commitc905df5091647a7076a6c9da188e3098e8d9cd1c (patch)
treea9ddb1687fccd6cf0e8e107fd15255251a137904 /usr.sbin/ppp/ip.c
parent3b65c00f328daf0fc8db68d8f715a571e8c6e184 (diff)
downloadFreeBSD-src-c905df5091647a7076a6c9da188e3098e8d9cd1c.zip
FreeBSD-src-c905df5091647a7076a6c9da188e3098e8d9cd1c.tar.gz
When ppp can't identify the relevant name, don't use "???", use
<nnn> or <0xxxx> instead.
Diffstat (limited to 'usr.sbin/ppp/ip.c')
-rw-r--r--usr.sbin/ppp/ip.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c
index 17b285c..1fdd6c2 100644
--- a/usr.sbin/ppp/ip.c
+++ b/usr.sbin/ppp/ip.c
@@ -104,8 +104,7 @@ dns_Qclass2Txt(u_short qclass)
if (qtxt[f].id == qclass)
return qtxt[f].txt;
- snprintf(failure, sizeof failure, "<0x%02x>", qclass);
- return failure;
+ return HexStr(qclass, failure, sizeof failure);
}
static const char *
@@ -132,8 +131,7 @@ dns_Qtype2Txt(u_short qtype)
if (qtxt[f].id == qtype)
return qtxt[f].txt;
- snprintf(failure, sizeof failure, "<0x%02x>", qtype);
- return failure;
+ return HexStr(qtype, failure, sizeof failure);
}
static __inline int
OpenPOWER on IntegriCloud