aboutsummaryrefslogtreecommitdiff
path: root/lib/kermit.exp
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2018-12-09 18:41:26 +1100
committerBen Elliston <bje@gnu.org>2018-12-09 18:41:26 +1100
commite2fb9266669c87021ce666f8dca81ab2d96635d1 (patch)
tree5671da3e54579106914421e932611f057eedc78d /lib/kermit.exp
parent115a81dab7063ea3b806bfbac87845e32d8ca5ad (diff)
downloaddejagnu-e2fb9266669c87021ce666f8dca81ab2d96635d1.zip
dejagnu-e2fb9266669c87021ce666f8dca81ab2d96635d1.tar.gz
dejagnu-e2fb9266669c87021ce666f8dca81ab2d96635d1.tar.bz2
* baseboards/basic-sid.exp, baseboards/basic-sim.exp,
baseboards/i386-sid.exp, baseboards/mt-sid.exp, baseboards/sh-sid.exp, config/adb.exp, config/gdb-comm.exp, config/gdb_stub.exp, config/sim.exp, config/unix.exp, config/vxworks.exp, lib/dejagnu.exp, lib/dg.exp, lib/framework.exp, lib/kermit.exp, lib/libgloss.exp, lib/remote.exp, lib/rsh.exp, lib/target.exp, lib/tip.exp, lib/utils.exp, testsuite/lib/libsup.exp, testsuite/runtest.all/options.exp,: Remove unnecessary braces around variable expansions.
Diffstat (limited to 'lib/kermit.exp')
-rw-r--r--lib/kermit.exp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/kermit.exp b/lib/kermit.exp
index db604a2..6d06969 100644
--- a/lib/kermit.exp
+++ b/lib/kermit.exp
@@ -29,15 +29,15 @@ proc kermit_open {dest args} {
if {[board_info $dest exists name]} {
set dest [board_info $dest name]
}
- if {[board_info ${dest} exists serial]} {
- set port [board_info ${dest} serial]
- set device "-l [board_info ${dest} serial]"
- if {[board_info ${dest} exists baud]} {
- append device " -b [board_info ${dest} baud]"
+ if {[board_info $dest exists serial]} {
+ set port [board_info $dest serial]
+ set device "-l [board_info $dest serial]"
+ if {[board_info $dest exists baud]} {
+ append device " -b [board_info $dest baud]"
}
} else {
- set port [board_info ${dest} netport]
- set device "-j [board_info ${dest} netport]"
+ set port [board_info $dest netport]
+ set device "-j [board_info $dest netport]"
}
set tries 0