Re: What are the in-kernel functions to format time?
- In reply to: Gary Jennejohn : "Re: What are the in-kernel functions to format time?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 11 Mar 2022 16:17:11 UTC
On 3/11/22 12:20, Gary Jennejohn wrote: > Do you mean the %zd? kvprintf() checks for a zflag and handles the > argument as size_t or ssize_t, depending on whether the sign is > positive or negative. Hi, Given that time is a 64-bit value, then probably "%llu", and (unsigned long long)bintime would do it, but then you need that cast. ./_types.h:typedef __int64_t __sbintime_t; I was tinking of a %XXX that divides the value somehow into something more readable, maybe suffixing "ns" or "ms" or "us" or something. --HPS