[dahdi-commits] sruffell: tools/trunk r4913 - /tools/trunk/dahdi_cfg.c
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Tue Sep 16 11:42:12 CDT 2008
Author: sruffell
Date: Tue Sep 16 11:42:12 2008
New Revision: 4913
URL: http://svn.digium.com/view/dahdi?view=rev&rev=4913
Log:
Provide system error information if open on /dev/dahdi/channel fails.
Modified:
tools/trunk/dahdi_cfg.c
Modified: tools/trunk/dahdi_cfg.c
URL: http://svn.digium.com/view/dahdi/tools/trunk/dahdi_cfg.c?view=diff&rev=4913&r1=4912&r2=4913
==============================================================================
--- tools/trunk/dahdi_cfg.c (original)
+++ tools/trunk/dahdi_cfg.c Tue Sep 16 11:42:12 2008
@@ -671,7 +671,9 @@
for (x = 1; x < DAHDI_MAX_CHANNELS; x++) {
chanfd = open("/dev/dahdi/channel", O_RDWR);
if (chanfd == -1) {
- fprintf(stderr, "Couldn't open /dev/dahdi/channel\n");
+ fprintf(stderr,
+ "Couldn't open /dev/dahdi/channel: %s\n",
+ strerror(errno));
exit(-1);
}
More information about the dahdi-commits
mailing list