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

Reply via email to