mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
audio/, crypto/, libnx/, and mm/: Change some err() ERRORS to warn() WARNINGS or info()
This commit is contained in:
+1
-1
@@ -93,7 +93,7 @@ void *operator new(unsigned int nbytes)
|
||||
// Oh my.. we are required to return a valid pointer and
|
||||
// we cannot throw an exception! We are bad.
|
||||
|
||||
err("Failed to allocate\n");
|
||||
err("ERROR: Failed to allocate\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ void *operator new[](unsigned int nbytes)
|
||||
// Oh my.. we are required to return a valid pointer and
|
||||
// we cannot throw an exception! We are bad.
|
||||
|
||||
err("Failed to allocate\n");
|
||||
err("ERROR: Failed to allocate\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -56,25 +56,25 @@ namespace std
|
||||
{
|
||||
void __throw_out_of_range(const char*)
|
||||
{
|
||||
err("C++: Vector .at() with argument out of range\n");
|
||||
err("ERROR: C++: Vector .at() with argument out of range\n");
|
||||
abort();
|
||||
}
|
||||
|
||||
void __throw_length_error(const char*)
|
||||
{
|
||||
err("C++: Vector resize to excessive length\n");
|
||||
err("ERROR: C++: Vector resize to excessive length\n");
|
||||
abort();
|
||||
}
|
||||
|
||||
void __throw_bad_alloc()
|
||||
{
|
||||
err("C++: Bad allocation\n");
|
||||
err("ERROR: C++: Bad allocation\n");
|
||||
abort();
|
||||
}
|
||||
|
||||
void __throw_bad_function_call()
|
||||
{
|
||||
err("C++: Bad function call\n");
|
||||
err("ERROR: C++: Bad function call\n");
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user