drm/gem-fb-helper: convert to drm device based logging
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
This commit is contained in:
parent
f33b9730cc
commit
24f03be4aa
|
@ -74,8 +74,7 @@ drm_gem_fb_alloc(struct drm_device *dev,
|
||||||
|
|
||||||
ret = drm_framebuffer_init(dev, fb, funcs);
|
ret = drm_framebuffer_init(dev, fb, funcs);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
DRM_DEV_ERROR(dev->dev, "Failed to init framebuffer: %d\n",
|
drm_err(dev, "Failed to init framebuffer: %d\n", ret);
|
||||||
ret);
|
|
||||||
kfree(fb);
|
kfree(fb);
|
||||||
return ERR_PTR(ret);
|
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]);
|
objs[i] = drm_gem_object_lookup(file, mode_cmd->handles[i]);
|
||||||
if (!objs[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;
|
ret = -ENOENT;
|
||||||
goto err_gem_object_put;
|
goto err_gem_object_put;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue