made error messages a little more informative
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8572 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
7562d5508a
commit
51599367a2
@ -532,7 +532,7 @@ ContinuousMessageFilter::ContinuousMessageFilter(BControl *control, BContinuousP
|
|||||||
float value[fParameter.CountChannels()];
|
float value[fParameter.CountChannels()];
|
||||||
size_t size = sizeof(value);
|
size_t size = sizeof(value);
|
||||||
if (parameter.GetValue((void *)&value, &size, NULL) < B_OK) {
|
if (parameter.GetValue((void *)&value, &size, NULL) < B_OK) {
|
||||||
ERROR("Could not get parameter value for %p\n", ¶meter);
|
ERROR("ContinuousMessageFilter: Could not get value for continuous parameter %p (name '%s', node %d)\n", ¶meter, parameter.Name(), parameter.Web()->Node().node);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -545,7 +545,7 @@ ContinuousMessageFilter::ContinuousMessageFilter(BControl *control, BContinuousP
|
|||||||
|
|
||||||
slider->SetModificationMessage(new BMessage(kMsgParameterChanged));
|
slider->SetModificationMessage(new BMessage(kMsgParameterChanged));
|
||||||
} else
|
} else
|
||||||
printf("unknown discrete parameter view\n");
|
ERROR("ContinuousMessageFilter: unknown continuous parameter view\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -575,10 +575,10 @@ ContinuousMessageFilter::Filter(BMessage *message, BHandler **target)
|
|||||||
value[i] = (float)(slider->ValueFor(i) / 1000.0);
|
value[i] = (float)(slider->ValueFor(i) / 1000.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("update view %s, %ld channels\n", control->Name(), fParameter.CountChannels());
|
TRACE("ContinuousMessageFilter::Filter: update view %s, %ld channels\n", control->Name(), fParameter.CountChannels());
|
||||||
|
|
||||||
if (fParameter.SetValue((void *)value, sizeof(value), system_time()) < B_OK) {
|
if (fParameter.SetValue((void *)value, sizeof(value), system_time()) < B_OK) {
|
||||||
ERROR("Could not set parameter value for %p\n", &fParameter);
|
ERROR("ContinuousMessageFilter::Filter: Could not set parameter value for %p\n", &fParameter);
|
||||||
return B_DISPATCH_MESSAGE;
|
return B_DISPATCH_MESSAGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -601,7 +601,7 @@ DiscreteMessageFilter::DiscreteMessageFilter(BControl *control, BDiscreteParamet
|
|||||||
size_t size = sizeof(int32);
|
size_t size = sizeof(int32);
|
||||||
int32 value;
|
int32 value;
|
||||||
if (parameter.GetValue((void *)&value, &size, NULL) < B_OK) {
|
if (parameter.GetValue((void *)&value, &size, NULL) < B_OK) {
|
||||||
ERROR("Could not get parameter value for %p\n", ¶meter);
|
ERROR("DiscreteMessageFilter: Could not get value for discrete parameter %p (name '%s', node %d)\n", ¶meter, parameter.Name(), parameter.Web()->Node().node);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -610,7 +610,7 @@ DiscreteMessageFilter::DiscreteMessageFilter(BControl *control, BDiscreteParamet
|
|||||||
} else if (BOptionPopUp *popUp = dynamic_cast<BOptionPopUp *>(control)) {
|
} else if (BOptionPopUp *popUp = dynamic_cast<BOptionPopUp *>(control)) {
|
||||||
popUp->SelectOptionFor(value);
|
popUp->SelectOptionFor(value);
|
||||||
} else
|
} else
|
||||||
printf("unknown discrete parameter view\n");
|
ERROR("DiscreteMessageFilter: unknown discrete parameter view\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -638,10 +638,10 @@ DiscreteMessageFilter::Filter(BMessage *message, BHandler **target)
|
|||||||
popUp->SelectedOption(NULL, &value);
|
popUp->SelectedOption(NULL, &value);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("update view %s, value = %ld\n", control->Name(), value);
|
TRACE("DiscreteMessageFilter::Filter: update view %s, value = %ld\n", control->Name(), value);
|
||||||
|
|
||||||
if (fParameter.SetValue((void *)&value, sizeof(value), system_time()) < B_OK) {
|
if (fParameter.SetValue((void *)&value, sizeof(value), system_time()) < B_OK) {
|
||||||
ERROR("Could not set parameter value for %p\n", &fParameter);
|
ERROR("DiscreteMessageFilter::Filter: Could not set parameter value for %p\n", &fParameter);
|
||||||
return B_DISPATCH_MESSAGE;
|
return B_DISPATCH_MESSAGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1383,7 +1383,8 @@ BParameter::GetValue(void *buffer, size_t *_ioSize, bigtime_t *_when)
|
|||||||
if (_when != NULL)
|
if (_when != NULL)
|
||||||
*_when = reply.last_change;
|
*_when = reply.last_change;
|
||||||
} else
|
} else
|
||||||
ERROR("BParameter::GetValue querying node failed: %s\n", strerror(status));
|
ERROR("BParameter::GetValue parameter '%s' querying node %d, port %d failed: %s\n",
|
||||||
|
mName, node.node, node.port, strerror(status));
|
||||||
|
|
||||||
if (area >= B_OK)
|
if (area >= B_OK)
|
||||||
delete_area(area);
|
delete_area(area);
|
||||||
|
Loading…
Reference in New Issue
Block a user