[oe-commits] Steffen Sledz : rtc-drbcc: be a bit more verbose in case of errors

git version control git at git.openembedded.org
Mon Feb 1 17:45:05 UTC 2010


Module: openembedded.git
Branch: shr/unstable
Commit: ff31db47356816eeb4679dd53439fa06b285ca39
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=ff31db47356816eeb4679dd53439fa06b285ca39

Author: Steffen Sledz <sledz at dresearch.de>
Date:   Mon Feb  1 17:22:14 2010 +0100

rtc-drbcc: be a bit more verbose in case of errors

Signed-off-by: Steffen Sledz <sledz at dresearch.de>

---

 recipes/linux/linux-2.6.24/hipox/hipox-rtc.patch |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes/linux/linux-2.6.24/hipox/hipox-rtc.patch b/recipes/linux/linux-2.6.24/hipox/hipox-rtc.patch
index 32093b5..8abadc9 100644
--- a/recipes/linux/linux-2.6.24/hipox/hipox-rtc.patch
+++ b/recipes/linux/linux-2.6.24/hipox/hipox-rtc.patch
@@ -376,7 +376,7 @@ diff -Nurd linux-2.6.24.orig//drivers/rtc/rtc-drbcc.c linux-2.6.24/drivers/rtc/r
 +	PDEBUG(1, "opening %s", devpath);
 +	filp = filp_open(devpath, O_RDWR | O_NOCTTY | O_NONBLOCK | O_NDELAY, 0);
 +	if (IS_ERR(filp)) {
-+		PERROR("unable to open serial device to BCTRL: %s", devpath);
++		PERROR("unable to open serial device to BCTRL: %s (%d)", devpath, filp);
 +		ret = PTR_ERR(filp);
 +		goto end2;
 +	}
@@ -452,7 +452,7 @@ diff -Nurd linux-2.6.24.orig//drivers/rtc/rtc-drbcc.c linux-2.6.24/drivers/rtc/r
 +	PDEBUG(1, "opening %s", devpath);
 +	filp = filp_open(devpath, O_RDWR | O_NOCTTY | O_NONBLOCK | O_NDELAY, 0);
 +	if (IS_ERR(filp)) {
-+		PERROR("unable to open serial device to BCTRL: %s", devpath);
++		PERROR("unable to open serial device to BCTRL: %s (%d)", devpath, filp);
 +		ret = PTR_ERR(filp);
 +		goto end2;
 +	}





More information about the Openembedded-commits mailing list