summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-11-13 09:59:29 +0100
committerDanny Baumann <dannybaumann@web.de>2007-11-13 09:59:29 +0100
commit28549462c8da49115de6743dddee6cda459af778 (patch)
treec3d5afba91a575d37021cda30088110589f57517
parentd22f72d28696f8e259068da0e7924b79a856a71f (diff)
downloadfiledebug-28549462c8da49115de6743dddee6cda459af778.tar.gz
filedebug-28549462c8da49115de6743dddee6cda459af778.tar.bz2
Clarify option name.
-rw-r--r--filedebug.c16
-rw-r--r--filedebug.xml.in6
2 files changed, 11 insertions, 11 deletions
diff --git a/filedebug.c b/filedebug.c
index 9c18ade..f41dd68 100644
--- a/filedebug.c
+++ b/filedebug.c
@@ -26,9 +26,9 @@
#include <unistd.h>
#include <compiz-core.h>
-#define FILEDEBUG_DISPLAY_OPTION_WRITE_TIMESTAMP 0
-#define FILEDEBUG_DISPLAY_OPTION_MAX_LEVEL 1
-#define FILEDEBUG_DISPLAY_OPTION_NUM 2
+#define FILEDEBUG_DISPLAY_OPTION_WRITE_TIMESTAMP 0
+#define FILEDEBUG_DISPLAY_OPTION_LOG_LEVEL_THRESHOLD 1
+#define FILEDEBUG_DISPLAY_OPTION_NUM 2
static int displayPrivateIndex;
@@ -56,15 +56,15 @@ filedebugLogMessage (CompDisplay *d,
CompLogLevel level,
const char *message)
{
- int maxLevel;
+ int threshold;
FILEDEBUG_DISPLAY (d);
- maxLevel = fd->opt[FILEDEBUG_DISPLAY_OPTION_MAX_LEVEL].value.i;
+ threshold = fd->opt[FILEDEBUG_DISPLAY_OPTION_LOG_LEVEL_THRESHOLD].value.i;
if (!fd->debugFile)
- maxLevel = -1;
+ threshold = -1;
- if (level <= maxLevel)
+ if (level <= threshold)
{
if (fd->opt[FILEDEBUG_DISPLAY_OPTION_WRITE_TIMESTAMP].value.b)
{
@@ -91,7 +91,7 @@ filedebugLogMessage (CompDisplay *d,
static const CompMetadataOptionInfo filedebugDisplayOptionInfo[] = {
{ "write_timestamp", "bool", 0, 0, 0 },
- { "max_log_level", "int", "<default>1</default>", 0, 0 }
+ { "log_level_threshold", "int", "<default>1</default>", 0, 0 }
};
static Bool
diff --git a/filedebug.xml.in b/filedebug.xml.in
index 0da1754..81891e7 100644
--- a/filedebug.xml.in
+++ b/filedebug.xml.in
@@ -10,9 +10,9 @@
<_long>Include timestamp in debug log</_long>
<default>true</default>
</option>
- <option name="max_log_level" type="int">
- <_short>The maximum log level to display</_short>
- <_long>The maximum log level to display</_long>
+ <option name="log_level_threshold" type="int">
+ <_short>Maximum Log Level</_short>
+ <_long>The maximum log level that is dumped to the file.</_long>
<default>1</default>
<desc>
<value>0</value>