diff options
author | reinelt <> | 2000-08-10 09:44:09 +0000 |
---|---|---|
committer | reinelt <> | 2000-08-10 09:44:09 +0000 |
commit | a71c28313e3e3ef0f2e235f78eaf38fca52deb1f (patch) | |
tree | 58f94e3a69cee7187c02a77f19890b99e0910cfc /processor.c | |
parent | c6583cea7fd9fac922a9cf653a66b431a3539f44 (diff) | |
download | lcd4linux-a71c28313e3e3ef0f2e235f78eaf38fca52deb1f.tar.gz |
[lcd4linux @ 2000-08-10 09:44:09 by reinelt]
new debugging scheme: error(), info(), debug()
uses syslog if in daemon mode
Diffstat (limited to 'processor.c')
-rw-r--r-- | processor.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/processor.c b/processor.c index da1c3d2..9a2e9ab 100644 --- a/processor.c +++ b/processor.c @@ -1,4 +1,4 @@ -/* $Id: processor.c,v 1.7 2000/07/31 10:43:44 reinelt Exp $ +/* $Id: processor.c,v 1.8 2000/08/10 09:44:09 reinelt Exp $ * * main data processing * @@ -20,6 +20,11 @@ * * * $Log: processor.c,v $ + * Revision 1.8 2000/08/10 09:44:09 reinelt + * + * new debugging scheme: error(), info(), debug() + * uses syslog if in daemon mode + * * Revision 1.7 2000/07/31 10:43:44 reinelt * * some changes to support kernel-2.4 (different layout of various files in /proc) @@ -431,12 +436,12 @@ void process_init (void) load.overload=atof(cfg_get("overload")?:"2.0"); lcd_query (&rows, &cols, &xres, &yres, &supported_bars); - debug ("%d rows, %d columns, %dx%d pixels\n", rows, cols, xres, yres); + debug ("%d rows, %d columns, %dx%d pixels", rows, cols, xres, yres); for (i=1; i<=rows; i++) { char buffer[8], *p; snprintf (buffer, sizeof(buffer), "Row%d", i); p=cfg_get(buffer)?:""; - debug ("%s: %s\n", buffer, p); + debug ("%s: %s", buffer, p); row[i]=strdup(parse(p, supported_bars, token_usage)); } } |