mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 03:11:11 -04:00
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>
This commit is contained in:
committed by
Alyssa Rosenzweig
parent
403ff8fd2d
commit
a49ce9cc85
@@ -212,7 +212,7 @@ static int appletbdrm_read_response(struct appletbdrm_device *adev,
|
||||
}
|
||||
|
||||
if (response->msg != expected_response) {
|
||||
drm_err(drm, "Unexpected response from device (expected %p4cc found %p4cc)\n",
|
||||
drm_err(drm, "Unexpected response from device (expected %p4cl found %p4cl)\n",
|
||||
&expected_response, &response->msg);
|
||||
return -EIO;
|
||||
}
|
||||
@@ -286,7 +286,7 @@ static int appletbdrm_get_information(struct appletbdrm_device *adev)
|
||||
}
|
||||
|
||||
if (pixel_format != APPLETBDRM_PIXEL_FORMAT) {
|
||||
drm_err(drm, "Encountered unknown pixel format (%p4cc)\n", &pixel_format);
|
||||
drm_err(drm, "Encountered unknown pixel format (%p4cl)\n", &pixel_format);
|
||||
ret = -EINVAL;
|
||||
goto free_info;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user