Module Name: src
Committed By: riastradh
Date: Wed Jul 24 03:26:18 UTC 2013
Modified Files:
src/sys/external/bsd/drm2/include/linux [riastradh-drm2]: device.h
Log Message:
Prefix `error: '/`warning: ' to Linux dev_err/dev_warn output.
To generate a diff of this commit:
cvs rdiff -u -r1.1.2.3 -r1.1.2.4 \
src/sys/external/bsd/drm2/include/linux/device.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/include/linux/device.h
diff -u src/sys/external/bsd/drm2/include/linux/device.h:1.1.2.3 src/sys/external/bsd/drm2/include/linux/device.h:1.1.2.4
--- src/sys/external/bsd/drm2/include/linux/device.h:1.1.2.3 Wed Jul 24 03:17:32 2013
+++ src/sys/external/bsd/drm2/include/linux/device.h Wed Jul 24 03:26:18 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: device.h,v 1.1.2.3 2013/07/24 03:17:32 riastradh Exp $ */
+/* $NetBSD: device.h,v 1.1.2.4 2013/07/24 03:26:18 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -35,7 +35,10 @@
#include <sys/types.h>
#include <sys/systm.h>
-#define dev_err device_printf
-#define dev_warn device_printf
+#define dev_err(DEV, FMT, ...) \
+ device_printf((DEV), "error: " FMT, ##__VA_ARGS__)
+
+#define dev_warn(DEV, FMT, ...) \
+ device_printf((DEV), "warning: " FMT, ##__VA_ARGS__)
#endif /* _LINUX_DEVICE_H_ */