Commit 6e7b3e4c authored by Sebastian Brzezinka's avatar Sebastian Brzezinka Committed by Tomasz Zawadzki
Browse files

SC2048: Use "${array[@]}" (with quotes) to prevent whitespace problems.

parent d7fc39cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -318,6 +318,6 @@ get_cc_toolchain

cross_compile_packages=(numa uuid crypto_ssl libaio ncurses cunit isal dpdk spdk)

for index in ${cross_compile_packages[*]}; do
for index in "${cross_compile_packages[@]}"; do
	cross_compile_$index
done
+4 −4
Original line number Diff line number Diff line
@@ -29,10 +29,10 @@ function reactor_set_intr_mode() {

	if [ "$without_thd"x != x ]; then
		# Schedule all spdk_threads to reactor 1
		for i in ${thd0_ids[*]}; do
		for i in "${thd0_ids[@]}"; do
			$rpc_py thread_set_cpumask -i $i -m $r1_mask
		done
		for i in ${thd2_ids[*]}; do
		for i in "${thd2_ids[@]}"; do
			$rpc_py thread_set_cpumask -i $i -m $r1_mask
		done
	fi
@@ -48,7 +48,7 @@ function reactor_set_intr_mode() {
	$rpc_py --plugin interrupt_plugin reactor_set_interrupt_mode 2
	if [ "$without_thd"x != x ]; then
		# Schedule spdk_threads in thd2_ids back to reactor 2
		for i in ${thd2_ids[*]}; do
		for i in "${thd2_ids[@]}"; do
			$rpc_py thread_set_cpumask -i $i -m $r2_mask
		done
	fi
@@ -59,7 +59,7 @@ function reactor_set_intr_mode() {
	$rpc_py --plugin interrupt_plugin reactor_set_interrupt_mode 0
	if [ "$without_thd"x != x ]; then
		# Schedule spdk_threads in thd2_ids back to reactor 0
		for i in ${thd0_ids[*]}; do
		for i in "${thd0_ids[@]}"; do
			$rpc_py thread_set_cpumask -i $i -m $r0_mask
		done
	fi