utils/trace: fix argument parsing

Signed-off-by: Philippe Gerum <rpm@xenomai.org>
This commit is contained in:
Philippe Gerum 2020-02-28 22:14:32 +01:00
parent 1565744da2
commit f7c6c22963
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ case "$opt" in
disable=false disable=false
shift;; shift;;
-s) bufsz=$(eval echo $2) -s) bufsz=$(eval echo $2)
shift
shift;; shift;;
-d) enable=false -d) enable=false
disable=true disable=true
@ -36,6 +37,7 @@ case "$opt" in
-f) full=true -f) full=true
shift;; shift;;
-c) pcpu=per_cpu/cpu$(eval echo $2)/ -c) pcpu=per_cpu/cpu$(eval echo $2)/
shift
shift;; shift;;
-h) help=true; -h) help=true;
shift;; shift;;