diff options
author | Kevin Steves <stevesk@cvs.openbsd.org> | 2009-01-12 15:54:14 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@cvs.openbsd.org> | 2009-01-12 15:54:14 +0000 |
commit | d261602b34e4f02bbebb4d5e2112f488b5445e53 (patch) | |
tree | 191e419d6e903b317396b6a872e10eb788d33399 /sys/kern | |
parent | 57706643aee9a5a9b0c3977bdc835be485abc408 (diff) |
1) remove invalid comment since first field is not message type
in msts
2) modify debug string to not print first field (which is not
the sentence message type)
ok mbalmer@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/tty_msts.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/tty_msts.c b/sys/kern/tty_msts.c index a88792e5a1d..437379907fd 100644 --- a/sys/kern/tty_msts.c +++ b/sys/kern/tty_msts.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty_msts.c,v 1.10 2009/01/12 15:19:28 stevesk Exp $ */ +/* $OpenBSD: tty_msts.c,v 1.11 2009/01/12 15:54:13 stevesk Exp $ */ /* * Copyright (c) 2008 Marc Balmer <mbalmer@openbsd.org> @@ -217,7 +217,7 @@ msts_scan(struct msts *np, struct tty *tp) char *fld[MAXFLDS], *cs; /* split into fields */ - fld[fldcnt++] = &np->cbuf[0]; /* message type */ + fld[fldcnt++] = &np->cbuf[0]; for (cs = NULL, n = 0; n < np->pos && cs == NULL; n++) { switch (np->cbuf[n]) { case 3: /* ASCII <ETX> */ @@ -229,8 +229,8 @@ msts_scan(struct msts *np, struct tty *tp) np->cbuf[n] = '\0'; fld[fldcnt++] = &np->cbuf[n + 1]; } else { - DPRINTF(("nr of fields in %s sentence exceeds " - "maximum of %d\n", fld[0], MAXFLDS)); + DPRINTF(("nr of fields in sentence exceeds " + "maximum of %d\n", MAXFLDS)); return; } break; |