]> Gentwo Git Trees - linux/.git/commit
Drivers: hv: vmbus: Fix sysfs output format for ring buffer index
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Sat, 13 Sep 2025 19:24:42 +0000 (12:24 -0700)
committerWei Liu <wei.liu@kernel.org>
Tue, 30 Sep 2025 23:31:00 +0000 (23:31 +0000)
commit332bf98d6c5a198d3078110b9000841dac3fd7b2
treebd58f72fd1a64b9ac34929a642761c1f87901511
parentfd9be098f7eb4bb6b1768145fd48e74a292e3730
Drivers: hv: vmbus: Fix sysfs output format for ring buffer index

The sysfs attributes out_read_index and out_write_index in
vmbus_drv.c currently use %d to print outbound.current_read_index
and outbound.current_write_index.

These fields are u32 values, so printing them with %d (signed) is
not logically correct. Update the format specifier to %u to
correctly match their type.

No functional change, only fixes the sysfs output format.

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/vmbus_drv.c