lkml.org 
[lkml]   [2016]   [Jun]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v8 2/5] tpm: Add optional logging of TPM command durations
On Tue, Jun 21, 2016 at 06:10:28PM -0700, Ed Swierk wrote:

> if (chip->ops->req_canceled(chip, status)) {
> dev_err(chip->pdev, "Operation Canceled\n");
> + dev_dbg(chip->pdev, "canceled command %d after %d ms\n",
> + ordinal, jiffies_to_msecs(jiffies -
> start));

[..]

> chip->ops->cancel(chip);
> dev_err(chip->pdev, "Operation Timed out\n");
> + dev_dbg(chip->pdev, "command %d timed out after %d ms\n", ordinal,
> + jiffies_to_msecs(jiffies - start));

No sense in logging twice, just enhance the existingerror message.

Jason

\
 
 \ /
  Last update: 2016-06-24 21:01    [W:0.625 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site