Module Name:    src
Committed By:   riastradh
Date:           Wed Jul 24 02:30:26 UTC 2013

Modified Files:
        src/sys/external/bsd/drm2/dist/include/drm [riastradh-drm2]: drmP.h

Log Message:
Define DRM_INFO appropriately for NetBSD in drmP.h.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1.2.26 -r1.1.1.1.2.27 \
    src/sys/external/bsd/drm2/dist/include/drm/drmP.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/dist/include/drm/drmP.h
diff -u src/sys/external/bsd/drm2/dist/include/drm/drmP.h:1.1.1.1.2.26 src/sys/external/bsd/drm2/dist/include/drm/drmP.h:1.1.1.1.2.27
--- src/sys/external/bsd/drm2/dist/include/drm/drmP.h:1.1.1.1.2.26	Wed Jul 24 02:23:06 2013
+++ src/sys/external/bsd/drm2/dist/include/drm/drmP.h	Wed Jul 24 02:30:26 2013
@@ -204,8 +204,14 @@ int drm_err(const char *func, const char
 #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.

Reply via email to