From 10fd5103d05e0e84415fd9b26eebe9c98c8880fc Mon Sep 17 00:00:00 2001 From: dteske Date: Fri, 21 Dec 2012 19:26:17 +0000 Subject: Improve the debugging abilities and clean up debug messages. In most cases, all one has to do is set the environment variable DEBUGGING to get the debug messages to appear on the console. --- usr.sbin/bsdconfig/examples/bsdconfigrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin/bsdconfig/examples') diff --git a/usr.sbin/bsdconfig/examples/bsdconfigrc b/usr.sbin/bsdconfig/examples/bsdconfigrc index a863a94..21d4264 100644 --- a/usr.sbin/bsdconfig/examples/bsdconfigrc +++ b/usr.sbin/bsdconfig/examples/bsdconfigrc @@ -31,5 +31,6 @@ # debugging aid for development # f_dprintf() { -# echo "$(date):$pgm: $1" >> $HOME/out +# local format="$1"; shift +# printf "$(date):$pgm:$format\n" "$@" >> $HOME/out # } -- cgit v1.1