Skip to content

Commit c52d235

Browse files
committed
logging: stringly typed fixes
numbers would have the intended space stripped report_timing -setup_margin0 instead of: report_timing -setup_margin 0 Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 5c1a7d4 commit c52d235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flow/scripts/util.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
proc log_cmd {cmd args} {
22
# log the command, escape arguments with spaces
3-
puts -nonewline "$cmd[join [lmap arg $args {expr {[string match {* *} $arg] ? " \"$arg\"" : " $arg"}}] ""]"
3+
puts -nonewline "$cmd[join [lmap arg $args {format " %s" [expr {[string match {* *} $arg] ? "\"$arg\"" : "$arg"}]}] ""]"
44
set start [clock seconds]
55
$cmd {*}$args
66
set time [expr {[clock seconds] - $start}]

0 commit comments

Comments
 (0)