Re: [PATCH v5 06/22] coco/tdx-host: Expose P-SEAMLDR information via sysfs
From: Dave Hansen
Date: Tue Mar 17 2026 - 11:38:28 EST
On 3/17/26 03:06, Kiryl Shutsemau wrote:
>> + return sysfs_emit(buf, "%u.%u.%02u\n", info.major_version,
>> + info.minor_version,
>> + info.update_version);
> Maybe a comment why %02u used for update_version?
Could we just stick this in a:
#define TDX_VERSION_FMT "%u.%u.%02u"
and document it there, once and for all?
Users can do:
return sysfs_emit(buf, TDX_VERSION_FMT "\n", ...
There are going to be a couple of these, I expect.