[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 02/04: libdde_linux26: enable logging to stderr
From: |
Samuel Thibault |
Subject: |
[hurd] 02/04: libdde_linux26: enable logging to stderr |
Date: |
Sun, 05 Jul 2015 00:41:52 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch dde
in repository hurd.
commit f8fb94a690718c018e71c69bcd8e495b36b88fd4
Author: Justus Winter <address@hidden>
Date: Thu Jun 25 16:56:52 2015 +0200
libdde_linux26: enable logging to stderr
* libdde_linux26/include/linux/device.h (dev_printk): Log to stderr if
`DDE_LINUX' is defined.
---
libdde_linux26/include/linux/device.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libdde_linux26/include/linux/device.h
b/libdde_linux26/include/linux/device.h
index 41b4227..3dc6e94 100644
--- a/libdde_linux26/include/linux/device.h
+++ b/libdde_linux26/include/linux/device.h
@@ -553,7 +553,10 @@ extern const char *dev_driver_string(const struct device
*dev);
printk(level "%s %s: " format , dev_driver_string(dev) , \
dev_name(dev) , ## arg)
#else
-#define dev_printk(level, dev, format, arg...)
+#include <stdio.h>
+#define dev_printk(level, dev, format, arg...) \
+ fprintf(stderr, level "%s %s: " format, \
+ dev_driver_string(dev), dev_name(dev), ## arg)
#endif
#define dev_emerg(dev, format, arg...) \
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git