John DENKER: don't grow /sim/logging/classes indefinitely on read-out
This commit is contained in:
parent
f40d2f3b00
commit
d40678628f
1 changed files with 2 additions and 1 deletions
|
@ -95,7 +95,8 @@ static const char *
|
||||||
getLoggingClasses ()
|
getLoggingClasses ()
|
||||||
{
|
{
|
||||||
sgDebugClass classes = logbuf::get_log_classes();
|
sgDebugClass classes = logbuf::get_log_classes();
|
||||||
static string result = ""; // FIXME
|
static string result;
|
||||||
|
result = "";
|
||||||
for (int i = 0; log_class_mappings[i].c != SG_UNDEFD; i++) {
|
for (int i = 0; log_class_mappings[i].c != SG_UNDEFD; i++) {
|
||||||
if ((classes&log_class_mappings[i].c) > 0) {
|
if ((classes&log_class_mappings[i].c) > 0) {
|
||||||
if (!result.empty())
|
if (!result.empty())
|
||||||
|
|
Loading…
Add table
Reference in a new issue