Add CONFIG_DEBUG_ERROR. Change names of *dbg() * *err()

This commit is contained in:
Gregory Nutt
2016-06-11 15:50:49 -06:00
parent e99301d7c2
commit a1469a3e95
1091 changed files with 5971 additions and 5966 deletions
+6 -6
View File
@@ -559,12 +559,12 @@ static int cmp(Bigint * a, Bigint * b)
#ifdef CONFIG_DEBUG_LIB
if (i > 1 && !a->x[i - 1])
{
ldbg("cmp called with a->x[a->wds-1] == 0\n");
lerr("cmp called with a->x[a->wds-1] == 0\n");
}
if (j > 1 && !b->x[j - 1])
{
ldbg("cmp called with b->x[b->wds-1] == 0\n");
lerr("cmp called with b->x[b->wds-1] == 0\n");
}
#endif
@@ -722,7 +722,7 @@ static Bigint *d2b(double d, int *e, int *bits)
#ifdef CONFIG_DEBUG_LIB
if (!z)
{
ldbg("Zero passed to d2b\n");
lerr("Zero passed to d2b\n");
}
#endif
k = lo0bits(&z);
@@ -763,7 +763,7 @@ static Bigint *d2b(double d, int *e, int *bits)
#ifdef CONFIG_DEBUG_LIB
if (!z)
{
ldbg("Zero passed to d2b\n");
lerr("Zero passed to d2b\n");
}
#endif
k = lo0bits(&z);
@@ -851,7 +851,7 @@ static int quorem(Bigint * b, Bigint * S)
#ifdef CONFIG_DEBUG_LIB
if (b->wds > n)
{
ldbg("oversize b in quorem\n");
lerr("oversize b in quorem\n");
}
#endif
if (b->wds < n)
@@ -867,7 +867,7 @@ static int quorem(Bigint * b, Bigint * S)
#ifdef CONFIG_DEBUG_LIB
if (q > 9)
{
ldbg("oversized quotient in quorem\n");
lerr("oversized quotient in quorem\n");
}
#endif