summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/framebuffer10
-rw-r--r--scripts/functions2
2 files changed, 6 insertions, 6 deletions
diff --git a/docs/framebuffer b/docs/framebuffer
index 508fc51..81ba77f 100644
--- a/docs/framebuffer
+++ b/docs/framebuffer
@@ -44,19 +44,19 @@ parse_video_opts()
for opt in ${OPTS}; do
# Already in the "<arg>=<value>" form
if [ "${opt}" != "${opt#*=}" ]; then
- echo -n "$opt "
+ printf "%s" "$opt "
# In the "<arg>:<value>" form
elif [ "${opt}" != "${opt#*:}" ]; then
- echo -n "${opt%:*}=${opt#*:} "
+ printf "%s" "${opt%:*}=${opt#*:} "
# Presumably a modevalue without the "mode=" prefix
elif [ "${opt}" != "${opt#[0-9]*x[0-9]}" ]; then
# Adjust: mode= option?
- echo -n "mode=$opt "
+ printf "%s" "mode=$opt "
# ... or mode_option= option?
- # echo -n "mode_option=$opt "
+ # printf "%s" "mode_option=$opt "
# Presumably a boolean
else
- echo -n "${opt}=1 "
+ printf "%s" "${opt}=1 "
fi
done
}
diff --git a/scripts/functions b/scripts/functions
index 57ebd0d..8a08827 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -3,7 +3,7 @@
_log_msg()
{
if [ "${quiet?}" = "y" ]; then return; fi
- echo -n "$*"
+ printf "%s" "$*"
}
log_success_msg()