Re: [PATCH v10 17/19] rv: Add rtapp_sleep monitor
From: Steven Rostedt
Date: Tue Jul 01 2025 - 11:07:19 EST
On Tue, 1 Jul 2025 07:17:57 +0200
Nam Cao <namcao@xxxxxxxxxxxxx> wrote:
> > > + switch (state) {
> > > + case S0:
> > > + if (val3)
> > > + __set_bit(S0, next);
> > > + if (val11 && val13)
> > > + __set_bit(S1, next);
> > > + if (val11 && val14)
> > > + __set_bit(S4, next);
> > > + if (val5)
> > > + __set_bit(S5, next);
> > > + break;
> >
> > What's with all the magic numbers?
> >
> > Can we turn these into enums so they have some meaning for us humans?
>
> I'm not sure what you mean, we can't use enums as variables.
Bah, never mind. My eyes are getting bad and I need to increase my font
size, as all the S0, S1, S2 looked to me like 50, 51, 52, and I was
wondering what are all these numbers in the fifties??? :-p
[ Note, it is a beautiful day and on nice days like this I go outside
to work using my laptop, which has a much smaller screen than my
desktop. I was reviewing your patches on my laptop where these looked
like numbers and not something that started with an 'S'!
]
-- Steve