diff options
author | scop <scop> | 2005-06-22 16:57:57 +0000 |
---|---|---|
committer | scop <scop> | 2005-06-22 16:57:57 +0000 |
commit | 1b8747dd7a9e55aec4c2aaf1048b58c95c4c2b00 (patch) | |
tree | d906db82625bc4b6e86d8f1bba1d749107313b03 /dxr3colormanager.c | |
parent | 7cfced59ba4bd5100d681783a74cbb327adfb525 (diff) | |
download | vdr-plugin-dxr3-1b8747dd7a9e55aec4c2aaf1048b58c95c4c2b00.tar.gz vdr-plugin-dxr3-1b8747dd7a9e55aec4c2aaf1048b58c95c4c2b00.tar.bz2 |
Use VDR's logging facilities, no more dxr3plugin.log.
Diffstat (limited to 'dxr3colormanager.c')
-rw-r--r-- | dxr3colormanager.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dxr3colormanager.c b/dxr3colormanager.c index f8b4002..044d254 100644 --- a/dxr3colormanager.c +++ b/dxr3colormanager.c @@ -51,7 +51,7 @@ #include <assert.h> #include "dxr3colormanager.h" -#include "dxr3log.h" +#include <vdr/tools.h> #include <stdio.h> #include <string.h> @@ -140,8 +140,8 @@ void cColorManager::EncodeColors(int width, int height, unsigned char* map, } else { - // give up - cLog::Instance() << "dxr3colormanager: too many regions!\n"; + esyslog("dxr3: colormanager: too many regions (%d)" + " - giving up", NrOfRegions); return; } } @@ -260,8 +260,7 @@ void cColorManager::NextSection(void) if (curSectionIndex < curRegion->N) curSection=curRegion->Section[curSectionIndex]; // it shouldn't happen - else cLog::Instance() << - "dxr3colormanager: no more sections in NextSection!\n"; + else esyslog("dxr3: colormanager: ran out of sections"); } // ================================== @@ -327,7 +326,8 @@ void cColorManager::NewSection(int x) { int N = curRegion->N; if (N >= MAX_NO_OF_SECTIONS - 1) { - cLog::Instance() << "dxr3colormanager: bummer, too many sections\n"; + esyslog("dxr3: colormanager: bummer, too many sections (%d)," + " reusing last one", N); return; // reuse last section, not optimal but there's no other way out } curSection = new xSection(x); |