[dahdi-commits] tzafrir: linux/trunk r10152 - /linux/trunk/drivers/dahdi/xpp/xpp_debug
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Wed Aug 24 03:11:42 CDT 2011
Author: tzafrir
Date: Wed Aug 24 03:11:38 2011
New Revision: 10152
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10152
Log:
xpp: fix bashism in xpp_debug
Signed-off-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Modified:
linux/trunk/drivers/dahdi/xpp/xpp_debug
Modified: linux/trunk/drivers/dahdi/xpp/xpp_debug
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/xpp/xpp_debug?view=diff&rev=10152&r1=10151&r2=10152
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/xpp_debug (original)
+++ linux/trunk/drivers/dahdi/xpp/xpp_debug Wed Aug 24 03:11:38 2011
@@ -43,11 +43,10 @@
list=''
for n in $dbg_names
do
- if (( val & (1 << j) ))
- then
+ if [ $(( val & (1 << j) )) -ne 0 ]; then
list="$list $n"
fi
- let j++
+ j=$((j+1))
done
if [ "$list" = "" ]; then
list=' NONE'
@@ -67,19 +66,19 @@
for n in $dbg_names
do
if [ "$wanted" = "$n" ]; then
- (( val |= (1 << j) ))
+ : $(( val |= (1 << j) ))
found=1
elif [ "$wanted" = -"$n" ]; then
- (( val &= ~(1 << j) ))
+ : $(( val &= ~(1 << j) ))
found=1
elif [ "$wanted" = "ANY" ]; then
- (( val = ~0 ))
+ : $(( val = ~0 ))
found=1
elif [ "$wanted" = -"ANY" -o "$wanted" = "NONE" ]; then
- (( val = 0 ))
+ val=0
found=1
fi
- let j++
+ j=$((j+1))
done
if [ "$found" -eq 0 ]; then
echo >&2 "$0: Unknown debug flag '$wanted'"
More information about the dahdi-commits
mailing list