mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-01 08:27:59 +00:00
Cosmetic: Diagnostic wording (Unknown -> Unexpected)
This commit is contained in:
parent
c31ac0b396
commit
cff2b1c9b4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37994
@ -17,7 +17,7 @@
|
||||
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Id: hdlc.c,v 1.33 1998/06/16 19:40:37 brian Exp $
|
||||
* $Id: hdlc.c,v 1.34 1998/06/27 23:48:44 brian Exp $
|
||||
*
|
||||
* TODO:
|
||||
*/
|
||||
@ -375,6 +375,7 @@ hdlc_DecodePacket(struct bundle *bundle, u_short proto, struct mbuf * bp,
|
||||
{
|
||||
struct physical *p = link2physical(l);
|
||||
u_char *cp;
|
||||
const char *type;
|
||||
|
||||
log_Printf(LogDEBUG, "DecodePacket: proto = 0x%04x\n", proto);
|
||||
|
||||
@ -438,9 +439,18 @@ hdlc_DecodePacket(struct bundle *bundle, u_short proto, struct mbuf * bp,
|
||||
}
|
||||
/* Fall through */
|
||||
default:
|
||||
log_Printf(LogPHASE, "%s protocol 0x%04x (%s)\n",
|
||||
proto == PROTO_MP ? "Unexpected" : "Unknown",
|
||||
proto, hdlc_Protocol2Nam(proto));
|
||||
switch (proto) {
|
||||
case PROTO_MP:
|
||||
case PROTO_COMPD:
|
||||
case PROTO_ICOMPD:
|
||||
type = "Unexpected";
|
||||
break;
|
||||
default:
|
||||
type = "Unknown";
|
||||
break;
|
||||
}
|
||||
log_Printf(LogPHASE, "%s protocol 0x%04x (%s)\n", type, proto,
|
||||
hdlc_Protocol2Nam(proto));
|
||||
bp->offset -= 2;
|
||||
bp->cnt += 2;
|
||||
cp = MBUF_CTOP(bp);
|
||||
|
Loading…
Reference in New Issue
Block a user