summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdconfig/share
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2013-01-14 21:03:34 +0000
committerdteske <dteske@FreeBSD.org>2013-01-14 21:03:34 +0000
commit9bcfc5995dcac43a412f130666f5c7f2e676ce60 (patch)
tree5d1c54eb9cb7c4cc3ddf698587787c35121d5ac1 /usr.sbin/bsdconfig/share
parent3386d88ffd8645a281dc469254815414cff93cd7 (diff)
downloadFreeBSD-src-9bcfc5995dcac43a412f130666f5c7f2e676ce60.zip
FreeBSD-src-9bcfc5995dcac43a412f130666f5c7f2e676ce60.tar.gz
Don't use f_show_msg() unless printf(1) syntax is required (this reduces the
number of unnecessary forks).
Diffstat (limited to 'usr.sbin/bsdconfig/share')
-rw-r--r--usr.sbin/bsdconfig/share/mustberoot.subr2
-rw-r--r--usr.sbin/bsdconfig/share/variable.subr4
2 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bsdconfig/share/mustberoot.subr b/usr.sbin/bsdconfig/share/mustberoot.subr
index ebce9c1..2ead592 100644
--- a/usr.sbin/bsdconfig/share/mustberoot.subr
+++ b/usr.sbin/bsdconfig/share/mustberoot.subr
@@ -128,7 +128,7 @@ f_become_root_via_sudo()
1) # Always try sudo(8) when run as $user
local err
if ! err=$( touch "$checkpath" 2>&1 ); then
- f_show_msg "%s" "$err"
+ f_dialog_msgbox "$err"
else
f_show_msg "$msg_created_path" "$checkpath"
fi
diff --git a/usr.sbin/bsdconfig/share/variable.subr b/usr.sbin/bsdconfig/share/variable.subr
index f63a5f8..235f6dc 100644
--- a/usr.sbin/bsdconfig/share/variable.subr
+++ b/usr.sbin/bsdconfig/share/variable.subr
@@ -118,7 +118,7 @@ f_variable_set_defaults()
#
# Dump a list of registered/advertised variables and their respective values to
# $VARIABLE_DUMPFILE. Returns success unless the file couldn't be written. If
-# an error occurs, it is displayed using f_show_msg() (from common.subr).
+# an error occurs, it is displayed using f_dialog_msgbox() (from dialog.subr).
#
f_dump_variables()
{
@@ -131,7 +131,7 @@ f_dump_variables()
printf "%s='%s'\n" "$var" "$value"
done > "$VARIABLE_DUMPFILE" ) 2>&1
); then
- f_show_msg "%s" "$err"
+ f_dialog_msgbox "$err"
return $FAILURE
fi
}
OpenPOWER on IntegriCloud