diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2012-12-07 08:04:59 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2012-12-07 08:04:59 +0000 |
commit | 56095be41bb9813bd41e6880c7225bdb10491d4e (patch) | |
tree | cb4517165faf00058df36338dc9fbaaffa8800b2 /usr.bin/sndiod/utils.h | |
parent | 61aeba66d2d7ccc463bccd093601cb23c7ade20b (diff) |
move log_level in utils.h with other logging bits
Diffstat (limited to 'usr.bin/sndiod/utils.h')
-rw-r--r-- | usr.bin/sndiod/utils.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.bin/sndiod/utils.h b/usr.bin/sndiod/utils.h index 060245cb672..2b26f324f68 100644 --- a/usr.bin/sndiod/utils.h +++ b/usr.bin/sndiod/utils.h @@ -1,4 +1,4 @@ -/* $OpenBSD: utils.h,v 1.1 2012/11/23 07:03:28 ratchov Exp $ */ +/* $OpenBSD: utils.h,v 1.2 2012/12/07 08:04:58 ratchov Exp $ */ /* * Copyright (c) 2003-2012 Alexandre Ratchov <alex@caoua.org> * @@ -31,6 +31,16 @@ void *xmalloc(size_t); char *xstrdup(char *); void xfree(void *); +/* + * Log levels: + * + * 0 - fatal errors: bugs, asserts, internal errors. + * 1 - warnings: bugs in clients, failed allocations, non-fatal errors. + * 2 - misc information (hardware parameters, incoming clients) + * 3 - structural changes (eg. new streams, new parameters ...) + * 4 - data blocks and messages + */ +extern unsigned int log_level; extern unsigned int log_sync; #endif |