amdgpu: hwmon fan: fix typo

This commit is contained in:
FlightlessMango 2023-04-20 03:14:08 +02:00
parent 016728b450
commit 7eea724f37

View File

@ -116,7 +116,7 @@ void getAmdGpuInfo(){
if (amdgpu.fan) {
rewind(amdgpu.fan);
fflush(amdgpu.fan);
if (fscanf(amdgpu.fan, "%d" PRId64, &value) != 1)
if (fscanf(amdgpu.fan, "%" PRId64, &value) != 1)
value = 0;
gpu_info.fan_speed = value;
}