RE: [PATCH v8 2/2] ufs: exynos: introduce command history

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +
> +       for (i = 0 ; i < count ; i++, data++) {
> +               dev_err(dev, ": 0x%02x, %02d, 0x%08llx, 0x%04x, %d, %llu, %llu,
> 0x%llx",
> +                               data->op, data->tag, data->lba, data->sct, data->retries,
> +                               data->start_time, data->end_time, data-
> >outstanding_reqs);
> +               idx = (idx == MAX_CMD_LOGS - 1) ? 0 : idx + 1;
> +       }
Maybe just outside of the loop:
idx += count;
idx %= (MAX_CMD_LOGS - 1);





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux