On Sat, Jun 01, 2013 at 07:40:56PM +0200, Gregor Best wrote:
> On Sat, Jun 01, 2013 at 06:35:24AM -0700, Mike Larkin wrote:
> > [...]
> > SIMPLEQ_FOREACH(wentry, &sc->sc_wakedevs, q_next) {
> > - printf(" %.4s(S%d)", wentry->q_node->name,
> > - wentry->q_state);
> > + if (wakeup_dev_ct < 16)
> > + printf(" %.4s(S%d)", wentry->q_node->name,
> > + wentry->q_state);
> > + else if (wakeup_dev_ct == 16)
> > + printf(" [...]");
> > [...]
>
> Would it make sense to break the loop once the [...] has been printed
> instead of iterating over the queue without doing anything?
>
> --
> Gregor Best
>
Sure, go ahead.
Like I said, I don't have any real attachment to this and if someone has
a better way, I'm all for it.