Remove length field from utrace entries.

This commit is contained in:
Poul-Henning Kamp 1996-09-22 18:18:20 +00:00
parent d920a829d4
commit 3f8ba9ae3e

View File

@ -171,7 +171,7 @@ main(argc, argv)
ktrcsw((struct ktr_csw *)m); ktrcsw((struct ktr_csw *)m);
break; break;
case KTR_USER: case KTR_USER:
ktruser((struct ktr_user *)m); ktruser(ktrlen, m);
break; break;
} }
if (tail) if (tail)
@ -439,12 +439,12 @@ ktrcsw(cs)
cs->user ? "user" : "kernel"); cs->user ? "user" : "kernel");
} }
ktruser(cs) ktruser(len, p)
struct ktr_user *cs; int len;
unsigned char *p;
{ {
unsigned char *p = (unsigned char *)(cs + 1); (void)printf("%d ", len);
(void)printf("%d ", cs->len); while (len--)
while (cs->len--)
(void)printf(" %02x", *p++); (void)printf(" %02x", *p++);
(void)printf("\n"); (void)printf("\n");