Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: don't push static constants on stack for %*ph

There is no need to pass constants via stack. The width may be explicitly
specified in the format.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by

Andy Shevchenko and committed by
Dave Airlie
08fcd72b baa70943

+4 -4
+1 -1
drivers/gpu/drm/nouveau/core/engine/disp/dport.c
··· 150 150 if (ret) 151 151 return ret; 152 152 153 - DBG("status %*ph\n", 6, dp->stat); 153 + DBG("status %6ph\n", dp->stat); 154 154 return 0; 155 155 } 156 156
+1 -1
drivers/gpu/drm/radeon/atombios_dp.c
··· 550 550 return false; 551 551 } 552 552 553 - DRM_DEBUG_KMS("link status %*ph\n", 6, link_status); 553 + DRM_DEBUG_KMS("link status %6ph\n", link_status); 554 554 return true; 555 555 } 556 556
+2 -2
drivers/gpu/drm/udl/udl_main.c
··· 41 41 total_len = usb_get_descriptor(usbdev, 0x5f, /* vendor specific */ 42 42 0, desc, MAX_VENDOR_DESCRIPTOR_SIZE); 43 43 if (total_len > 5) { 44 - DRM_INFO("vendor descriptor length:%x data:%*ph\n", 45 - total_len, 11, desc); 44 + DRM_INFO("vendor descriptor length:%x data:%11ph\n", 45 + total_len, desc); 46 46 47 47 if ((desc[0] != total_len) || /* descriptor length */ 48 48 (desc[1] != 0x5f) || /* vendor descriptor type */