Show state for all models
This commit is contained in:
parent
d45041e00c
commit
30d5e4b0ca
@ -59,14 +59,15 @@ model_probe(struct model *model, struct emu *emu)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret == 0) {
|
/* Zero is disabled */
|
||||||
dbg("model %c disabled", (char) i);
|
if (ret > 0) {
|
||||||
} else {
|
|
||||||
model->enabled[i] = 1;
|
model->enabled[i] = 1;
|
||||||
info("model %s %s [%c] enabled",
|
|
||||||
spec->name, spec->version, (char) i);
|
|
||||||
nenabled++;
|
nenabled++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *state = model->enabled[i] ? "enabled" : "disabled";
|
||||||
|
info("model %8s %s '%c' %s",
|
||||||
|
spec->name, spec->version, (char) i, state);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nenabled == 0)
|
if (nenabled == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user