From 30d5e4b0ca5a6b4447f20ed085dd029a4f59275a Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Fri, 10 Nov 2023 13:08:42 +0100 Subject: [PATCH] Show state for all models --- src/emu/model.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/emu/model.c b/src/emu/model.c index f7a225d..a884edb 100644 --- a/src/emu/model.c +++ b/src/emu/model.c @@ -59,14 +59,15 @@ model_probe(struct model *model, struct emu *emu) return -1; } - if (ret == 0) { - dbg("model %c disabled", (char) i); - } else { + /* Zero is disabled */ + if (ret > 0) { model->enabled[i] = 1; - info("model %s %s [%c] enabled", - spec->name, spec->version, (char) i); 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)