提交 69f3bf3a 编写于 作者: H Hongjin Li

style: using different variable in different functions

Signed-off-by: NHongjin Li <lihongjin1@huawei.com>
Change-Id: I814dcccefcd6248ea32cae94bfde567f3077c7cd
上级 2590e343
...@@ -59,14 +59,14 @@ parse_line() ...@@ -59,14 +59,14 @@ parse_line()
echo "Error: no such file: $i" echo "Error: no such file: $i"
exit 1 exit 1
fi fi
FILE_LINE=$(get_line "$1" $i) ELF_FILE_LINE=$(get_line "$1" $i)
if [[ "${FILE_LINE}" == *"?"* ]] || [ -z "${FILE_LINE}" ]; then if [[ "${ELF_FILE_LINE}" == *"?"* ]] || [ -z "${ELF_FILE_LINE}" ]; then
echo " * Error: you need ensure whether file: "$i" was compiled with -g or not! *" echo " * Error: you need ensure whether file: "$i" was compiled with -g or not! *"
exit 1 exit 1
fi fi
LINE=$(echo $1 | tr -d '\r') LINE=$(echo $1 | tr -d '\r')
LINE=$(echo ${LINE} | awk '{print $1,$2}') LINE=$(echo ${LINE} | awk '{print $1,$2}')
echo " "${LINE}" at "${FILE_LINE} echo " "${LINE}" at "${ELF_FILE_LINE}
FLAG=true FLAG=true
break break
fi fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册