projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f33b973
)
drm/gem-fb-helper: convert to drm device based logging
author
Jani Nikula
<jani.nikula@intel.com>
Tue, 10 Dec 2019 12:30:46 +0000
(14:30 +0200)
committer
Jani Nikula
<jani.nikula@intel.com>
Thu, 19 Dec 2019 13:55:10 +0000
(15:55 +0200)
Prefer drm_dbg_kms() and drm_err() over all other logging.
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20191210123050.8799-4-jani.nikula@intel.com
drivers/gpu/drm/drm_gem_framebuffer_helper.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_gem_framebuffer_helper.c
b/drivers/gpu/drm/drm_gem_framebuffer_helper.c
index b9bcd310ca2d83aff42a3f21c78098b7363b68bc..3a7ace19a9021c1dfd7d761e0244725e7c77b429 100644
(file)
--- a/
drivers/gpu/drm/drm_gem_framebuffer_helper.c
+++ b/
drivers/gpu/drm/drm_gem_framebuffer_helper.c
@@
-74,8
+74,7
@@
drm_gem_fb_alloc(struct drm_device *dev,
ret = drm_framebuffer_init(dev, fb, funcs);
if (ret) {
- DRM_DEV_ERROR(dev->dev, "Failed to init framebuffer: %d\n",
- ret);
+ drm_err(dev, "Failed to init framebuffer: %d\n", ret);
kfree(fb);
return ERR_PTR(ret);
}
@@
-160,7
+159,7
@@
drm_gem_fb_create_with_funcs(struct drm_device *dev, struct drm_file *file,
objs[i] = drm_gem_object_lookup(file, mode_cmd->handles[i]);
if (!objs[i]) {
-
DRM_DEBUG_KMS(
"Failed to lookup GEM object\n");
+
drm_dbg_kms(dev,
"Failed to lookup GEM object\n");
ret = -ENOENT;
goto err_gem_object_put;
}