drm/amd/display: Fix wrong format specifier in amdgpu_dm.c
authorjsg <jsg@openbsd.org>
Mon, 1 Aug 2022 16:18:53 +0000 (16:18 +0000)
committerjsg <jsg@openbsd.org>
Mon, 1 Aug 2022 16:18:53 +0000 (16:18 +0000)
From Hayden Goodfellow
c6e4817ab622f526d6afe9e02c6d85b177b3e846 in linux 5.15.y/5.15.58
655c167edc8c260b6df08bdcfaca8afde0efbeb6 in mainline linux

sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index a2d8e03..14176a8 100644 (file)
@@ -758,7 +758,7 @@ static void dm_dmub_outbox1_low_irq(void *interrupt_params)
                        do {
                                dc_stat_get_dmub_notification(adev->dm.dc, &notify);
                                if (notify.type >= ARRAY_SIZE(dm->dmub_thread_offload)) {
-                                       DRM_ERROR("DM: notify type %d larger than the array size %ld !", notify.type,
+                                       DRM_ERROR("DM: notify type %d larger than the array size %zu!", notify.type,
                                        ARRAY_SIZE(dm->dmub_thread_offload));
                                        continue;
                                }