Re: [PATCH 1/2] nvme: print namespace IDs as unsigned 32bit value

From: Keith Busch

Date: Mon Aug 24 2026 - 20:56:17 EST


On Fri, Aug 21, 2026 at 04:03:09PM -0700, Mohamed Khalfella wrote:
> NSIDs are 32-bit unsigned values, but a number of log messages print
> them with %d. An NSID larger than 0x7fffffff is rendered as a negative
> number, which is confusing in the kernel log and makes the message hard
> to correlate with the namespace it talks about. Sparse NSID spaces
> where high NSIDs are common are the most likely to hit this.
>
> The nsid sysfs attribute has the same problem, and there it is worse
> because userspace parses the value.

Thanks, applied to nvme-7.3.