diff options
author | brian <brian@FreeBSD.org> | 2000-03-14 01:46:54 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-03-14 01:46:54 +0000 |
commit | c905df5091647a7076a6c9da188e3098e8d9cd1c (patch) | |
tree | a9ddb1687fccd6cf0e8e107fd15255251a137904 /usr.sbin/ppp/ip.c | |
parent | 3b65c00f328daf0fc8db68d8f715a571e8c6e184 (diff) | |
download | FreeBSD-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.c | 6 |
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 |