mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Add CONFIG_DEBUG_ERROR. Change names of *dbg() * *err()
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user