aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2005-11-23 19:32:28 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2005-11-23 19:32:28 +0000
commit4b0c983467aa29375ece60fb133a39d26ff479c2 (patch)
tree84d063a4adb13f14c4244b680ddadf996d19a757
parent11c104d156e0373ed8895b88eb45940583d6d971 (diff)
downloadtagr-4b0c983467aa29375ece60fb133a39d26ff479c2.tar.gz
tagr-4b0c983467aa29375ece60fb133a39d26ff479c2.tar.bz2
(verbose): New function
git-svn-id: file:///svnroot/tagr/trunk@64 7c378d0d-a4e4-4a64-9229-dfce8bfd23d4
-rw-r--r--log.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/log.c b/log.c
index 54daa82..950068c 100644
--- a/log.c
+++ b/log.c
@@ -15,7 +15,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
-/* $Id: log.c,v 1.2 2005-01-23 18:53:08 gray Exp $ */
+/* $Id: log.c,v 1.3 2005-11-23 19:32:28 gray Exp $ */
#ifdef HAVE_CONFIG_H
# include <config.h>
@@ -88,3 +88,19 @@ die (int code, const char *fmt, ...)
va_end (ap);
exit (code);
}
+
+
+void
+verbose (int level, const char *fmt, ...)
+{
+ va_list ap;
+
+ if (verbose_level < level)
+ return;
+ va_start (ap, fmt);
+ printf ("%s: ", progname);
+ vprintf (fmt, ap);
+ printf ("\n");
+ va_end (ap);
+}
+

Return to:

Send suggestions and report system problems to the System administrator.