Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/tprof fixed parsing of event options.
details: https://anonhg.NetBSD.org/src/rev/2c6aca91d971
branches: trunk
changeset: 372784:2c6aca91d971
user: ryo <ryo%NetBSD.org@localhost>
date: Mon Dec 26 08:00:13 2022 +0000
description:
fixed parsing of event options.
if event option was specivied, it was stuck in a busy loop.
diffstat:
usr.sbin/tprof/tprof.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 3e17fe535e7b -r 2c6aca91d971 usr.sbin/tprof/tprof.c
--- a/usr.sbin/tprof/tprof.c Mon Dec 26 03:25:55 2022 +0000
+++ b/usr.sbin/tprof/tprof.c Mon Dec 26 08:00:13 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tprof.c,v 1.19 2022/12/26 03:25:55 ryoon Exp $ */
+/* $NetBSD: tprof.c,v 1.20 2022/12/26 08:00:13 ryo Exp $ */
/*
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: tprof.c,v 1.19 2022/12/26 03:25:55 ryoon Exp $");
+__RCSID("$NetBSD: tprof.c,v 1.20 2022/12/26 08:00:13 ryo Exp $");
#endif /* not lint */
#include <sys/atomic.h>
@@ -310,6 +310,7 @@
"invalid option: '%c'", *opt);
goto done;
}
+ opt++;
}
} else if (allow_option) {
param->p_flags |= TPROF_PARAM_USER;
Home |
Main Index |
Thread Index |
Old Index