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

drm/appletbdrm: use %p4cl instead of %p4cc

Due to lack of a proper format specifier, %p4cc was being used instead
of %p4cl for the purpose of printing FourCCs. But the disadvange was
that they were being printed in a reverse order. %p4cl should correct
this issue.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Signed-off-by: Aditya Garg <gargaditya08@live.com>
Link: https://lore.kernel.org/r/PN3PR01MB959783DC6377C4CAB203D7ADB8B52@PN3PR01MB9597.INDPRD01.PROD.OUTLOOK.COM
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>

authored by

Aditya Garg and committed by
Alyssa Rosenzweig
a49ce9cc 403ff8fd

+2 -2
+2 -2
drivers/gpu/drm/tiny/appletbdrm.c
··· 212 212 } 213 213 214 214 if (response->msg != expected_response) { 215 - drm_err(drm, "Unexpected response from device (expected %p4cc found %p4cc)\n", 215 + drm_err(drm, "Unexpected response from device (expected %p4cl found %p4cl)\n", 216 216 &expected_response, &response->msg); 217 217 return -EIO; 218 218 } ··· 286 286 } 287 287 288 288 if (pixel_format != APPLETBDRM_PIXEL_FORMAT) { 289 - drm_err(drm, "Encountered unknown pixel format (%p4cc)\n", &pixel_format); 289 + drm_err(drm, "Encountered unknown pixel format (%p4cl)\n", &pixel_format); 290 290 ret = -EINVAL; 291 291 goto free_info; 292 292 }