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/cbcp.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/cbcp.c')
-rw-r--r-- | usr.sbin/ppp/cbcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/cbcp.c b/usr.sbin/ppp/cbcp.c index 1ff5fe3..0250594 100644 --- a/usr.sbin/ppp/cbcp.c +++ b/usr.sbin/ppp/cbcp.c @@ -151,7 +151,7 @@ cbcpstate(int s) { if (s < sizeof cbcpname / sizeof cbcpname[0]) return cbcpname[s]; - return "???"; + return HexStr(s, NULL, 0); } static void @@ -214,7 +214,7 @@ cbcp_data_Type(int type) }; if (type < 1 || type > sizeof types / sizeof types[0]) - return "???"; + return HexStr(type, NULL, 0); return types[type-1]; } |