summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/drm_fb_helper.c
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2015-02-11 07:01:36 +0000
committerjsg <jsg@openbsd.org>2015-02-11 07:01:36 +0000
commitd765308cd7699ec7b6493a03e2f1a51d0b5fc557 (patch)
treed1159509d3a396bf8409a989486beeee6cd501b2 /sys/dev/pci/drm/drm_fb_helper.c
parentProvide a tls_connect_servername() function that has the same behaviour (diff)
downloadwireguard-openbsd-d765308cd7699ec7b6493a03e2f1a51d0b5fc557.tar.xz
wireguard-openbsd-d765308cd7699ec7b6493a03e2f1a51d0b5fc557.zip
Switch most printf style functions calls back to linux function names
and move DRM_INFO/pr_info/dev_info messages under DRMDEBUG.
Diffstat (limited to 'sys/dev/pci/drm/drm_fb_helper.c')
-rw-r--r--sys/dev/pci/drm/drm_fb_helper.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/drm/drm_fb_helper.c b/sys/dev/pci/drm/drm_fb_helper.c
index c0707306864..cc13d6bca84 100644
--- a/sys/dev/pci/drm/drm_fb_helper.c
+++ b/sys/dev/pci/drm/drm_fb_helper.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: drm_fb_helper.c,v 1.8 2015/02/10 10:50:49 jsg Exp $ */
+/* $OpenBSD: drm_fb_helper.c,v 1.9 2015/02/11 07:01:36 jsg Exp $ */
/*
* Copyright (c) 2006-2009 Red Hat Inc.
* Copyright (c) 2006-2008 Intel Corporation
@@ -811,7 +811,7 @@ int drm_fb_helper_single_fb_probe(struct drm_fb_helper *fb_helper,
if (crtc_count == 0 || sizes.fb_width == -1 || sizes.fb_height == -1) {
/* hmm everyone went away - assume VGA cable just fell out
and will come back later. */
- printf("Cannot find any crtc or sizes - going 1024x768\n");
+ DRM_INFO("Cannot find any crtc or sizes - going 1024x768\n");
sizes.fb_width = sizes.surface_width = 1024;
sizes.fb_height = sizes.surface_height = 768;
}
@@ -1137,7 +1137,7 @@ static bool drm_target_cloned(struct drm_fb_helper *fb_helper,
DRM_DEBUG_KMS("can clone using 1024x768\n");
return true;
}
- printf("kms: can't enable cloning when we probably wanted to.\n");
+ DRM_INFO("kms: can't enable cloning when we probably wanted to.\n");
return false;
}
@@ -1361,7 +1361,7 @@ bool drm_fb_helper_initial_config(struct drm_fb_helper *fb_helper, int bpp_sel)
* we shouldn't end up with no modes here.
*/
if (count == 0)
- printf("No connectors reported connected with modes\n");
+ dev_info(fb_helper->dev->dev, "No connectors reported connected with modes\n");
drm_setup_crtcs(fb_helper);