Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/include/linux Add some more device pri...



details:   https://anonhg.NetBSD.org/src/rev/b3478ad2a1fb
branches:  trunk
changeset: 992707:b3478ad2a1fb
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 07:33:35 2018 +0000

description:
Add some more device print routines.

diffstat:

 sys/external/bsd/drm2/include/linux/device.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 6a34377acb54 -r b3478ad2a1fb sys/external/bsd/drm2/include/linux/device.h
--- a/sys/external/bsd/drm2/include/linux/device.h      Mon Aug 27 07:33:27 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/device.h      Mon Aug 27 07:33:35 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: device.h,v 1.4 2014/07/16 20:59:58 riastradh Exp $     */
+/*     $NetBSD: device.h,v 1.5 2018/08/27 07:33:35 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -35,12 +35,18 @@
 #include <sys/types.h>
 #include <sys/systm.h>
 
+#define        dev_crit(DEV, FMT, ...)                                 \
+       aprint_error_dev((DEV), "critical: " FMT, ##__VA_ARGS__)
+
 #define        dev_err(DEV, FMT, ...)                                  \
        aprint_error_dev((DEV), "error: " FMT, ##__VA_ARGS__)
 
 #define        dev_warn(DEV, FMT, ...)                                 \
        aprint_error_dev((DEV), "warning: " FMT, ##__VA_ARGS__)
 
+#define        dev_notice(DEV, FMT, ...)                                       \
+       aprint_normal_dev((DEV), "notice: " FMT, ##__VA_ARGS__)
+
 #define        dev_info(DEV, FMT, ...)                                 \
        aprint_normal_dev((DEV), "info: " FMT, ##__VA_ARGS__)
 



Home | Main Index | Thread Index | Old Index