[PATCH v2 1/1] accel/habanalabs: Switch to use %ptTs

Andy Shevchenko andriy.shevchenko at linux.intel.com
Wed Mar 5 09:40:14 UTC 2025


On Tue, Mar 04, 2025 at 09:01:59PM +0200, Jani Nikula wrote:
> On Thu, 06 Feb 2025, Andy Shevchenko <andriy.shevchenko at linux.intel.com> wrote:
> > Use %ptTs instead of open-coded variant to print contents of time64_t type
> > in human readable form.

...

> > -	char pq_time_str[64] = "N/A", eq_time_str[64] = "N/A";
> 
> The "N/A" gets replaced with, I presume, "1970-01-01 00:00:00" for 0
> timestamps, which is not the same thing.

It's used only in dev_err() below which is why it's fine to update.
Should I mention this in the commit message?

> But I honestly don't know anything about the driver.

-- 
With Best Regards,
Andy Shevchenko




More information about the dri-devel mailing list