Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/include/drm Define DRM_I...



details:   https://anonhg.NetBSD.org/src/rev/dc97a3c86a48
branches:  riastradh-drm2
changeset: 788160:dc97a3c86a48
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 02:30:26 2013 +0000

description:
Define DRM_INFO appropriately for NetBSD in drmP.h.

diffstat:

 sys/external/bsd/drm2/dist/include/drm/drmP.h |  6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diffs (18 lines):

diff -r fc02efe43140 -r dc97a3c86a48 sys/external/bsd/drm2/dist/include/drm/drmP.h
--- a/sys/external/bsd/drm2/dist/include/drm/drmP.h     Wed Jul 24 02:30:10 2013 +0000
+++ b/sys/external/bsd/drm2/dist/include/drm/drmP.h     Wed Jul 24 02:30:26 2013 +0000
@@ -204,8 +204,14 @@
 #define DRM_ERROR(fmt, ...)                            \
        drm_err(__func__, fmt, ##__VA_ARGS__)
 
+#ifdef __NetBSD__
+/* XXX Use device_printf, with a device.  */
+#define        DRM_INFO(fmt, ...)                              \
+       printf("drm: " fmt, ##__VA_ARGS__)
+#else
 #define DRM_INFO(fmt, ...)                             \
        printk(KERN_INFO "[" DRM_NAME "] " fmt, ##__VA_ARGS__)
+#endif
 
 /**
  * Debug output.



Home | Main Index | Thread Index | Old Index