debug: rename from TRIPLE_DEBUG to HAL_DEBUG

the old variable is still usable as a fallback


Origin commit data
------------------
Branch: master
Commit: 6c29c65cd7
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-02-12 (Sun, 12 Feb 2012)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2012-02-12 20:34:12 +01:00
parent 53fcf9061f
commit 4c984bff17

View File

@@ -49,7 +49,9 @@ void _lt_debug(int facility, const void *func, const char *fmt, ...)
void lt_debug_init(void)
{
int i = 0;
char *tmp = getenv("TRIPLE_DEBUG");
char *tmp = getenv("HAL_DEBUG");
if (! tmp)
*tmp = getenv("TRIPLE_DEBUG"); /* backwards compatibility... */
if (! tmp)
debuglevel = 0;
else
@@ -57,7 +59,7 @@ void lt_debug_init(void)
if (debuglevel == 0)
{
fprintf(stderr, "libtriple debug options can be set by exporting TRIPLE_DEBUG.\n");
fprintf(stderr, "libstb-hal debug options can be set by exporting HAL_DEBUG.\n");
fprintf(stderr, "The following values (or bitwise OR combinations) are valid:\n");
while (lt_facility[i]) {
fprintf(stderr, "\tcomponent: %s 0x%02x\n", lt_facility[i], 1 << i);
@@ -65,7 +67,7 @@ void lt_debug_init(void)
}
fprintf(stderr, "\tall components: 0x%02x\n", (1 << i) - 1);
} else {
fprintf(stderr, "libtriple debug is active for the following components:\n");
fprintf(stderr, "libstb-hal debug is active for the following components:\n");
while (lt_facility[i]) {
if (debuglevel & (1 << i))
fprintf(stderr, "%s ", lt_facility[i]);