genfio: Don't use cat EOF for small prints
authorErwan Velu <erwan@enovance.com>
Mon, 15 Jul 2013 09:14:39 +0000 (11:14 +0200)
committerErwan Velu <erwan@enovance.com>
Sun, 21 Jul 2013 09:58:49 +0000 (11:58 +0200)
That's just bother the reading when very few data is involved. A simple
print is enough

tools/genfio

index 49cbd50..0bc24cb 100755 (executable)
@@ -92,21 +92,15 @@ EOF
 }
 
 finish_template() {
-cat >>$TEMPLATE <<EOF
-iodepth=$IODEPTH
-EOF
+echo "iodepth=$IODEPTH" >> $TEMPLATE
 
 if [ "$RUNTIME" != "0" ]; then
-cat >>$TEMPLATE << EOF
-runtime=$RUNTIME
-time_based
-EOF
+       echo "runtime=$RUNTIME" >> $TEMPLATE
+       echo "time_based" >> $TEMPLATE
 fi
 
 if [ "$CACHED_IO" = "FALSE" ]; then
-cat >>$TEMPLATE << EOF
-direct=1
-EOF
+       echo "direct=1" >> $TEMPLATE
 fi
 }