mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
ipmi: Switch to use %ptSp
Use %ptSp instead of open coded variants to print content of struct timespec64 in human readable format. Acked-by: Corey Minyard <cminyard@mvista.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20251113150217.3030010-12-andriy.shevchenko@linux.intel.com Signed-off-by: Petr Mladek <pmladek@suse.com>
This commit is contained in:
committed by
Petr Mladek
parent
64acc20ec9
commit
0cfc283d18
@@ -275,8 +275,7 @@ void debug_timestamp(struct smi_info *smi_info, char *msg)
|
||||
struct timespec64 t;
|
||||
|
||||
ktime_get_ts64(&t);
|
||||
dev_dbg(smi_info->io.dev, "**%s: %lld.%9.9ld\n",
|
||||
msg, t.tv_sec, t.tv_nsec);
|
||||
dev_dbg(smi_info->io.dev, "**%s: %ptSp\n", msg, &t);
|
||||
}
|
||||
#else
|
||||
#define debug_timestamp(smi_info, x)
|
||||
|
||||
@@ -1083,10 +1083,8 @@ static int sender(void *send_info, struct ipmi_smi_msg *msg)
|
||||
struct timespec64 t;
|
||||
|
||||
ktime_get_real_ts64(&t);
|
||||
dev_dbg(&ssif_info->client->dev,
|
||||
"**Enqueue %02x %02x: %lld.%6.6ld\n",
|
||||
msg->data[0], msg->data[1],
|
||||
(long long)t.tv_sec, (long)t.tv_nsec / NSEC_PER_USEC);
|
||||
dev_dbg(&ssif_info->client->dev, "**Enqueue %02x %02x: %ptSp\n",
|
||||
msg->data[0], msg->data[1], &t);
|
||||
}
|
||||
return IPMI_CC_NO_ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user