summaryrefslogtreecommitdiffstats
path: root/usr.bin/kdump
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2007-12-06 08:49:43 +0000
committerjhb <jhb@FreeBSD.org>2007-12-06 08:49:43 +0000
commit2e2fe0271f844e316e19974f1eff0b16ec88de65 (patch)
treec1f589e4c842896f9d446f198121c1dc0c5d9498 /usr.bin/kdump
parent32cdd5f202579af2492069e0916ed60a6aa664c3 (diff)
downloadFreeBSD-src-2e2fe0271f844e316e19974f1eff0b16ec88de65.zip
FreeBSD-src-2e2fe0271f844e316e19974f1eff0b16ec88de65.tar.gz
Add several missing comma's in the fancy syscall parsing case before
some arguments that are parsed (e.g., semctl command names). MFC after: 3 days
Diffstat (limited to 'usr.bin/kdump')
-rw-r--r--usr.bin/kdump/kdump.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c
index f803c65..29b0919 100644
--- a/usr.bin/kdump/kdump.c
+++ b/usr.bin/kdump/kdump.c
@@ -596,6 +596,7 @@ ktrsyscall(struct ktr_syscall *ktr)
c = ',';
} else if (ktr->ktr_code == SYS_quotactl) {
print_number(ip,narg,c);
+ (void)putchar(',');
quotactlname((int)*ip);
ip++;
narg--;
@@ -615,34 +616,40 @@ ktrsyscall(struct ktr_syscall *ktr)
} else if (ktr->ktr_code == SYS___semctl) {
print_number(ip,narg,c);
print_number(ip,narg,c);
+ (void)putchar(',');
semctlname((int)*ip);
ip++;
narg--;
} else if (ktr->ktr_code == SYS_semget) {
print_number(ip,narg,c);
print_number(ip,narg,c);
+ (void)putchar(',');
semgetname((int)*ip);
ip++;
narg--;
} else if (ktr->ktr_code == SYS_msgctl) {
print_number(ip,narg,c);
+ (void)putchar(',');
shmctlname((int)*ip);
ip++;
narg--;
} else if (ktr->ktr_code == SYS_shmat) {
print_number(ip,narg,c);
print_number(ip,narg,c);
+ (void)putchar(',');
shmatname((int)*ip);
ip++;
narg--;
} else if (ktr->ktr_code == SYS_shmctl) {
print_number(ip,narg,c);
+ (void)putchar(',');
shmctlname((int)*ip);
ip++;
narg--;
} else if (ktr->ktr_code == SYS_minherit) {
print_number(ip,narg,c);
print_number(ip,narg,c);
+ (void)putchar(',');
minheritname((int)*ip);
ip++;
narg--;
@@ -665,6 +672,7 @@ ktrsyscall(struct ktr_syscall *ktr)
narg--;
} else if (ktr->ktr_code == SYS_sched_setscheduler) {
print_number(ip,narg,c);
+ (void)putchar(',');
schedpolicyname((int)*ip);
ip++;
narg--;
@@ -681,11 +689,13 @@ ktrsyscall(struct ktr_syscall *ktr)
print_number(ip,narg,c);
print_number(ip,narg,c);
print_number(ip,narg,c);
+ (void)putchar(',');
sendfileflagsname((int)*ip);
ip++;
narg--;
} else if (ktr->ktr_code == SYS_kldsym) {
print_number(ip,narg,c);
+ (void)putchar(',');
kldsymcmdname((int)*ip);
ip++;
narg--;
@@ -708,6 +718,7 @@ ktrsyscall(struct ktr_syscall *ktr)
ktr->ktr_code == SYS___acl_delete_link ||
ktr->ktr_code == SYS___acl_aclcheck_link) {
print_number(ip,narg,c);
+ (void)putchar(',');
acltypename((int)*ip);
ip++;
narg--;
@@ -719,6 +730,7 @@ ktrsyscall(struct ktr_syscall *ktr)
c = ',';
} else if (ktr->ktr_code == SYS_extattrctl) {
print_number(ip,narg,c);
+ (void)putchar(',');
extattrctlname((int)*ip);
ip++;
narg--;
OpenPOWER on IntegriCloud