summaryrefslogtreecommitdiffstats
path: root/usr.bin/kdump
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-09-22 18:18:20 +0000
committerphk <phk@FreeBSD.org>1996-09-22 18:18:20 +0000
commit880849a80eb75b12a7a46608998c601f529e2e36 (patch)
tree5179aca2801eb5fd273685315f886552b84aeaad /usr.bin/kdump
parent332739d607ffa091aef5d9ebe1bbd0ded4c2e3bf (diff)
downloadFreeBSD-src-880849a80eb75b12a7a46608998c601f529e2e36.zip
FreeBSD-src-880849a80eb75b12a7a46608998c601f529e2e36.tar.gz
Remove length field from utrace entries.
Diffstat (limited to 'usr.bin/kdump')
-rw-r--r--usr.bin/kdump/kdump.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c
index 94111f6..da2d48b 100644
--- a/usr.bin/kdump/kdump.c
+++ b/usr.bin/kdump/kdump.c
@@ -171,7 +171,7 @@ main(argc, argv)
ktrcsw((struct ktr_csw *)m);
break;
case KTR_USER:
- ktruser((struct ktr_user *)m);
+ ktruser(ktrlen, m);
break;
}
if (tail)
@@ -439,12 +439,12 @@ ktrcsw(cs)
cs->user ? "user" : "kernel");
}
-ktruser(cs)
- struct ktr_user *cs;
+ktruser(len, p)
+ int len;
+ unsigned char *p;
{
- unsigned char *p = (unsigned char *)(cs + 1);
- (void)printf("%d ", cs->len);
- while (cs->len--)
+ (void)printf("%d ", len);
+ while (len--)
(void)printf(" %02x", *p++);
(void)printf("\n");
OpenPOWER on IntegriCloud