Re: [PATCH] amdgpu/pm: replaced snprintf usage in amdgpu_pm.c with sysfs_emit

2021-06-16 Thread Wang, Kevin(Yang)
[AMD Official Use Only] Reviewed-by: Kevin Wang Best Regards, Kevin From: amd-gfx on behalf of Darren Powell Sent: Wednesday, June 16, 2021 12:31 PM To: amd-gfx@lists.freedesktop.org Cc: Powell, Darren Subject: [PATCH] amdgpu/pm: replaced snprintf usage in

[PATCH] amdgpu/pm: replaced snprintf usage in amdgpu_pm.c with sysfs_emit

2021-06-16 Thread Darren Powell
replaced snprintf usage in amdgpu_pm.c with sysfs_emit fixed warning on comparing int with uint32_t in amdgpu_get_pp_num_states() == Test == AMDGPU_PCI_ADDR=`lspci -nn | grep "VGA\|Display" | cut -d " " -f 1` AMDGPU_HWMON=`ls -la /sys/class/hwmon | grep $AMDGPU_PCI_ADDR | cut -d " " -f 10` HWMO