summaryrefslogtreecommitdiffstats
path: root/meta/packages/oprofile/oprofile/fix-arith.patch
blob: 5c55f4b349798e0c1c3f12d64d8d50d6c571dd2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Index: utils/opcontrol
===================================================================
RCS file: /cvsroot/oprofile/oprofile/utils/opcontrol,v
retrieving revision 1.148
diff -u -r1.148 opcontrol
--- utils/opcontrol	8 Nov 2007 09:24:30 -0000	1.148
+++ utils/opcontrol	27 Nov 2007 17:02:20 -0000
@@ -395,7 +395,7 @@
 	echo "SESSION_DIR=$SESSION_DIR" >>$SETUP_FILE
 
 	if test "$NR_CHOSEN" != "0"; then
-		for f in `seq 0 $((NR_CHOSEN - 1))`; do
+		for f in `seq 0 $(($NR_CHOSEN - 1))`; do
 			get_event $f
 			echo "CHOSEN_EVENTS_${f}=$GOTEVENT" >>$SETUP_FILE
 		done
@@ -590,7 +590,7 @@
 	OPHELP_ARGS=
 
 	if test "$NR_CHOSEN" != 0; then
-		for f in `seq 0 $((NR_CHOSEN - 1))`; do
+		for f in `seq 0 $(($NR_CHOSEN - 1))`; do
 			get_event $f
 			if test "$GOTEVENT" != ""; then
 				OPHELP_ARGS="$OPHELP_ARGS $GOTEVENT"
@@ -612,7 +612,7 @@
 		return
 	fi
 
-	for f in `seq 0 $((NR_CHOSEN - 1))`; do
+	for f in `seq 0 $(($NR_CHOSEN - 1))`; do
 		get_event $f
 		if test "$GOTEVENT" != ""; then
 			EVENT=`echo $GOTEVENT | awk -F: '{print $1}'`
@@ -1226,7 +1226,7 @@
 	verify_counters
 
 	OPROFILED_EVENTS=
-	for f in `seq 0 $((NR_CHOSEN - 1))`; do
+	for f in `seq 0 $(($NR_CHOSEN - 1))`; do
 		get_event $f
 		if test "$GOTEVENT" != ""; then
 			EVENT=`echo $GOTEVENT | awk -F: '{print $1}'`
@@ -1383,7 +1383,7 @@
 	fi
 
 	if test "$NR_CHOSEN" != "0"; then
-		for f in `seq 0 $((NR_CHOSEN - 1))`; do
+		for f in `seq 0 $(($NR_CHOSEN - 1))`; do
 			get_event $f
 			echo "Event $f: $GOTEVENT"
 		done