{
IndicatorNameInfo *old;
Bool replace;
- const char *action;
replace = (new->defs.merge == MergeReplace) ||
(new->defs.merge == MergeOverride);
{
if (replace)
old->virtual = new->virtual;
- action = "Using %s instead of %s\n";
+ ACTION("Using %s instead of %s\n",
+ (old->virtual ? "virtual" : "real"),
+ (old->virtual ? "real" : "virtual"));
}
else
{
- action = "Identical definitions ignored\n";
+ ACTION("Identical definitions ignored\n");
}
- ACTION(action, (old->virtual ? "virtual" : "real"),
- (old->virtual ? "real" : "virtual"));
return True;
}
else
{
if (replace)
- action = "Ignoring %d, using %d\n";
+ ACTION("Ignoring %d, using %d\n", old->ndx, new->ndx);
else
- action = "Using %d, ignoring %d\n";
- ACTION(action, old->ndx, new->ndx);
+ ACTION("Using %d, ignoring %d\n", old->ndx, new->ndx);
}
if (replace)
{
{
WARN("Multiple names for indicator %d\n", new->ndx);
if ((old->name == new->name) && (old->virtual == new->virtual))
- action = "Identical definitions ignored\n";
+ ACTION("Identical definitions ignored\n");
else
{
const char *oldType, *newType;